boolean (@NotNull PsiElement element, ProcessingContext context) { final GrTypeDefinition innerDefinition = PsiTreeUtil.getPrevSiblingOfType(element, GrTypeDefinition.class); return innerDefinition == null || innerDefinition.getContainingClass() == null || innerDefinition.getBody() != null; }