boolean (GrExpression expr) { for (PsiElement child = expr.getFirstChild(); child != null; child = child.getFirstChild()) { if (child instanceof GrApplicationStatement) { return true; } else if (child instanceof GrReferenceExpression && ((GrReferenceExpression)child).getDotToken() == null && ((GrReferenceExpression)child).getQualifier() != null) { return true; } } return false; }