private static @NotNull ApplicationPluginAccessor getApplicationPluginAccessor(@NotNull Project gradleProject) {
    if (is41OrBetter) {
      return new ExtensionApplicationPluginAccessor(gradleProject);
    }
    else {
      return new ConventionApplicationPluginAccessor(gradleProject);
    }
  }
private static @NotNull ApplicationPluginAccessor getApplicationPluginAccessor(@NotNull Project gradleProject)