List<LeafPsiElement> (GrStatement statement) { List<LeafPsiElement> result = new ArrayList<>(); statement.accept(new GroovyElementVisitor() { @Override public void visitBinaryExpression(@NotNull GrBinaryExpression expression) { if (isTablePart(expression)) { result.add((LeafPsiElement)expression.getOperationToken()); expression.acceptChildren(this); } } }); result.sort(Comparator.comparingInt(TreeElement::getStartOffset)); return result; }