@Nullable
  private static FilePosition getErrorFilePosition(@Nullable String location) {
    if (location == null) return null;
    Pair<String, Integer> errorLocation = GradleExecutionErrorHandler.getErrorLocation(location);
    if (errorLocation == null) return null;
    return new FilePosition(new File(errorLocation.first), errorLocation.second - 1, 0);
  }
@Nullable
  private static FilePosition getErrorFilePosition(@Nullable String location)