protected boolean isHeadless() {
    return ApplicationManager.getApplication().isHeadlessEnvironment() &&
           !WarmupStatus.InProgress.INSTANCE.equals(WarmupStatus.Companion.currentStatus());
  }
protected boolean isHeadless()