void (@NotNull AnActionEvent e) { e.getPresentation().setEnabled(e.getData(CommonDataKeys.EDITOR) == null); if (getTemplatePresentation().getDescription() == null) { ConfigurableUsageTarget target = getConfigurableTarget(myTargets); Supplier<String> description = null; if (target != null) { try { description = UsageViewBundle.messagePointer( "action.ShowSettings.show.settings.for.description", target.getLongDescriptiveName()); } catch (IndexNotReadyException ignored) { } } if (description == null) { description = UsageViewBundle.messagePointer("action.ShowSettings.show.find.usages.settings.dialog.description"); } getTemplatePresentation().setDescription(description); e.getPresentation().setDescription(description); } }