@Override
    public void deleteElement(@NotNull DataContext dataContext) {
      PsiElement[] elements = PlatformCoreDataKeys.PSI_ELEMENT_ARRAY.getData(dataContext);
      if (elements == null || elements.length == 0) return;
      LocalHistoryAction a = LocalHistory.getInstance().startAction(IdeBundle.message("progress.deleting"));
      try {
        DeleteHandler.deletePsiElement(elements, myProject);
      }
      finally {
        a.finish();
      }
    }
@Override
    public void deleteElement(@NotNull DataContext dataContext)