void (@NotNull AnActionEvent e) { super.update(e); if(this.getClass() != DetachExternalProjectAction.class) return; ProjectSystemId systemId = getSystemId(e); final String systemIdName = systemId != null ? systemId.getReadableName() : "External"; Presentation presentation = e.getPresentation(); presentation.setText(ExternalSystemBundle.messagePointer("action.detach.external.project.text", systemIdName)); }