boolean (PsiElement element) { return element instanceof PsiClass || element instanceof GrCodeBlock || element instanceof GrStatement && !(element instanceof GrExpression) || PsiUtil.isExpressionStatement(element) || element instanceof GrMethod; }