private static @Nullable Project findProjectByProjectPath(@NotNull String projectPath) {
    return ContainerUtil.find(ProjectManager.getInstance().getOpenProjects(), project -> projectPath.equals(getProjectPath(project)));
  }
private static @Nullable Project findProjectByProjectPath(@NotNull String projectPath)