boolean (@NotNull PsiElement element) { if (PsiTreeUtil.getParentOfType(element, GrCodeBlock.class, false, GrTypeDefinition.class) != null) { return false; } if (element instanceof PsiComment) { return false; } return GroovyCompletionData.suggestClassInterfaceEnum(element) || GroovyCompletionData.suggestFinalDef(element); }