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