boolean updateAutoCloseAndCheck() {
    if (IS_AUTOCLOSE_DISABLED
        || myAutoCloseActions == null
        || myAutoCloseActions.isEmpty()
    ) {
      return false;
    }

    if (myUpdateTimer.isRunning()) {
      // simple performance protection: skip check for visible touchbars (they continuously invoke _checkAutoClose)
      return false;
    }

    // use 50-ms timeout to prevent freezes (just for insurance)
    final long startTimeMs = System.currentTimeMillis();
    final AnAction result = ProgressIndicatorUtils.withTimeout(50/*ms*/, () -> updateAutoCloseAndCheckImpl());
    long spentTimeMs = System.currentTimeMillis() - startTimeMs;
    if (spentTimeMs > 10) {
      LOG.debug("updateAutoCloseAndCheckImpl spent %d ms", spentTimeMs);
    }
    return result != null;
  }
boolean updateAutoCloseAndCheck()