void (@NotNull final Project project, @NotNull ProjectSystemId projectSystemId, @NotNull ProjectData projectData, @NotNull AnActionEvent e) { e.getPresentation().setText( ExternalSystemBundle.messagePointer("action.detach.external.project.text", projectSystemId.getReadableName()) ); final ProjectNode projectNode = e.getData(ExternalSystemDataKeys.SELECTED_PROJECT_NODE); assert projectNode != null; detachProject(project, projectSystemId, projectData, projectNode); }