void (@NotNull AnActionEvent e) { Presentation presentation = e.getPresentation(); Project project = e.getProject(); if (project == null) return; presentation.setEnabled(isEnabled()); //noinspection HardCodedStringLiteral String scopeType = getCurrentScopeType(); presentation.setText(myI18nMap.getOrDefault(scopeType, () -> scopeType)); }