code: public static FeatureCollection fromFeature(@NonNull Feature feature) {
      List<Feature> featureList = Arrays.asList(feature);
      return new FeatureCollection(TYPE, null, featureList);
    }
docs: Create a new instance of this class by giving the feature collection a single {@link Feature}.
  
  @param feature a single feature
  @return a new instance of this class defined by the values passed inside this static factory
  method
  @since 3.0.0