@NotNull
  private static List<GrExpression> collectExpressions(@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;
  }
@NotNull
  private static List<GrExpression> collectExpressions(@NotNull PsiElement element)