public static @NotNull File getBuildDirectory(@NotNull Project project) {
    return project.getLayout().getBuildDirectory().getAsFile().get();
  }
public static @NotNull File getBuildDirectory(@NotNull Project project)