public static @NotNull TerminalCommandHistoryManager getInstance() {
    if (PRUNE_SCHEDULED.compareAndSet(false, true)) {
      JobScheduler.getScheduler().schedule(() -> pruneOutdated(), 4, TimeUnit.MINUTES);
    }
    return ApplicationManager.getApplication().getService(TerminalCommandHistoryManager.class);
  }
public static @NotNull TerminalCommandHistoryManager getInstance()