@NotNull
  private static Gradle getRootGradle(@NotNull Gradle gradle) {
    Gradle root = gradle;
    while (root.getParent() != null) {
      root = root.getParent();
    }
    return root;
  }
@NotNull
  private static Gradle getRootGradle(@NotNull Gradle gradle)