@Override
  public void deleteElement() throws IncorrectOperationException {
    final PsiClass refClass = getReferencedElement();
    if (myChangeParentModifier) {
      SealedUtils.removeFromPermitsList(myParentClass, refClass);
    }
    else {
      PsiJavaCodeReferenceElement exChildRef = findReference();
      if (exChildRef != null) exChildRef.delete();
    }
  }
@Override
  public void deleteElement()