boolean (@NotNull DataContext dataContext) { if (CommonDataKeys.PROJECT.getData(dataContext) == null) { return false; } final PsiElement[] elements = getPsiElements(dataContext); return shouldEnableDeleteAction(elements); }