void (@NotNull AnActionEvent e) { String recorderId = StringUtil.trim(Registry.stringValue("usage.statistics.test.action.recorder.id")); e.getPresentation().setEnabledAndVisible(e.getProject() != null && StatisticsRecorderUtil.isTestModeEnabled(recorderId)); }