void (@NotNull AnActionEvent e) { DataContext dataContext = e.getDataContext(); DeleteProvider provider = getDeleteProvider(dataContext); if (provider == null) return; try { provider.deleteElement(dataContext); } catch (Throwable t) { LOG.error(t); } }