public static MasterDetailsStateService getInstance(@NotNull Project project) {
    return project.getService(MasterDetailsStateService.class);
  }
public static MasterDetailsStateService getInstance(@NotNull Project project)