boolean (@NotNull PsiElement position) { final PsiElement parent = position.getParent(); if (parent instanceof GrTypeDefinitionBody) { final GrTypeDefinition containingClass = (GrTypeDefinition)parent.getParent(); if (containingClass.isAnnotationType()) { PsiElement sibling = PsiUtil.skipWhitespacesAndComments(position.getPrevSibling(), false); if (sibling instanceof PsiErrorElement) { sibling = PsiUtil.skipWhitespacesAndComments(sibling.getPrevSibling(), false); } return sibling instanceof GrAnnotationMethod && ((GrAnnotationMethod)sibling).getDefaultValue() == null; } } return false; }