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