ModCommand (@NotNull PsiElement element) { PsiModifierListOwner owner = PsiTreeUtil.getParentOfType(element, PsiModifierListOwner.class, false); if (owner == null) return ModCommand.nop(); if (JavaSuppressionUtil.getElementMemberSuppressedIn(owner, myID) instanceof PsiAnnotation annotation && ExternalAnnotationsManager.getInstance(annotation.getProject()).isExternalAnnotation(annotation)) { return removeFromAnnotationExternal(annotation, owner); } return ModCommand.nop(); }