boolean (@NotNull PsiModifierListOwner listOwner, @NotNull String annotationFQN) { ThreadingAssertions.assertEventDispatchThread(); return processExistingExternalAnnotations(listOwner, annotationFQN, annotationTag -> { PsiElement parent = annotationTag.getParent(); annotationTag.delete(); if (parent instanceof XmlTag) { if (((XmlTag)parent).getSubTags().length == 0) { parent.delete(); } } return true; }); }