private static boolean hasLocation(StandardJavaFileManager fileManager, String locationId) {
    final JavaFileManager.Location location = StandardLocation.locationFor(locationId);
    return location != null && fileManager.hasLocation(location);
  }
private static boolean hasLocation(StandardJavaFileManager fileManager, String locationId)