List<GrExpression> (@NotNull PsiElement element) { assert element instanceof GrExpression; List<GrExpression> result = new ArrayList<>(); result.add((GrExpression)element); while (element.getParent() instanceof GrBinaryExpression binary) { if (!isAppropriateBinary(binary, element)) break; result.add(binary); element = binary; } return result; }