public static @Nullable Property extractProperty(List<? extends Property> properties, String name) {
    int size = properties.size();
    for (int i = 0; i < size; i++) {
      if (name.equals(properties.get(i).getName())) {
        return properties.remove(i);
      }
    }
    return null;
  }
public static @Nullable Property extractProperty(List<? extends Property> properties, String name)