@Override
    public void deleteElement() throws IncorrectOperationException {
      PsiElement referencedElement = getReferencedElement();
      if (!referencedElement.isValid()) return;
      ExternalAnnotationsManager annotationsManager = ExternalAnnotationsManager.getInstance(referencedElement.getProject());
      PsiAnnotation[] externalAnnotations = annotationsManager.findExternalAnnotations((PsiModifierListOwner)referencedElement);
      if (externalAnnotations != null) {
        for (PsiAnnotation annotation : externalAnnotations) {
          String qualifiedName = annotation.getQualifiedName();
          if (qualifiedName == null) continue;
          annotationsManager.deannotate((PsiModifierListOwner)referencedElement, qualifiedName);
        }
      }
    }
@Override
    public void deleteElement()