@Override
    public void deleteElement(@NotNull DataContext dataContext) {
      Project project = CommonDataKeys.PROJECT.getData(dataContext);
      PsiElement[] elements = collectFormPsiElements(myNodes);
      DeleteHandler.deletePsiElement(elements, project);
    }
@Override
    public void deleteElement(@NotNull DataContext dataContext)