diff --git a/sql/server/src/main/java/org/elasticsearch/xpack/sql/parser/AbstractBuilder.java b/sql/server/src/main/java/org/elasticsearch/xpack/sql/parser/AbstractBuilder.java
index 2675bef9dfa..392c57c1648 100644
--- a/sql/server/src/main/java/org/elasticsearch/xpack/sql/parser/AbstractBuilder.java
+++ b/sql/server/src/main/java/org/elasticsearch/xpack/sql/parser/AbstractBuilder.java
@@ -16,6 +16,16 @@ import org.elasticsearch.xpack.sql.util.Check;
import java.util.ArrayList;
import java.util.List;
+/**
+ * Base parsing visitor class offering utility methods.
+ *
+ * Implementation note: ANTLR 4 generates sources with a parameterized signature that isn't really useful for SQL.
+ * That is mainly because it forces each visitor method to return a node inside the generated AST which
+ * might be or not the case.
+ * Since the parser generates two types of trees ({@code LogicalPlan} and {@code Expression}) plus string handling,
+ * the generic signature does not fit and does give any advantage hence why it is erased, each subsequent
+ * child class acting as a layer for parsing and building its respective type
+ */
abstract class AbstractBuilder extends SqlBaseBaseVisitor