void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); ProjectSystemId externalSystemId = e.getData(ExternalSystemDataKeys.EXTERNAL_SYSTEM_ID); if (externalSystemId != null) { String name = externalSystemId.getReadableName(); presentation.setText(JavaUiBundle.messagePointer("action.attach.external.project.text", name)); presentation.setDescription(JavaUiBundle.messagePointer("action.attach.external.project.description", name)); } presentation.setIcon(AllIcons.General.Add); presentation.setEnabledAndVisible(externalSystemId != null); }