private static @NotNull WindowStateService getWindowStateService(@Nullable Project project) {
    return project == null ? WindowStateService.getInstance() : WindowStateService.getInstance(project);
  }
private static @NotNull WindowStateService getWindowStateService(@Nullable Project project)