public static WindowStateService getInstance(@NotNull Project project) {
    return Registry.is("ui.app.wide.dimension.service", false)
           ? getInstance()
           : project.getService(WindowStateService.class);
  }
public static WindowStateService getInstance(@NotNull Project project)