@NotNull
  private static GradleProject getRootProject(@NotNull GradleProject project) {
    GradleProject result = project;
    while (result.getParent() != null) {
      result = result.getParent();
    }
    return result;
  }
@NotNull
  private static GradleProject getRootProject(@NotNull GradleProject project)