void (@NotNull AnActionEvent e) { Project project = e.getProject(); if (project == null) return; ServiceView serviceView = getSelectedView(e); if (serviceView == null) return; ServiceViewManagerImpl manager = (ServiceViewManagerImpl)ServiceViewManager.getInstance(project); for (ServiceViewItem item : getSelectedItems(e)) { manager.extract(new ServiceViewDragBean(serviceView, Collections.singletonList(item))); } }