public static @Nullable String getBuildRoot(@Nullable BuildEnvironment buildEnvironment) {
    if (buildEnvironment == null) {
      return null;
    }
    BuildIdentifier buildIdentifier = getBuildIdentifier(buildEnvironment);
    return buildIdentifier == null ? null : buildIdentifier.getRootDir().getPath();
  }
public static @Nullable String getBuildRoot(@Nullable BuildEnvironment buildEnvironment)