code: public static SimpleFeatureCollection createFeatureCollection( SimpleFeature... features ) {
          DefaultFeatureCollection fcollection = new DefaultFeatureCollection();
  
          for( SimpleFeature feature : features ) {
              fcollection.add(feature);
          }
          return fcollection;
      }
docs: Create a featurecollection from a vector of features
  
  @param features - the vectore of features
  @return the created featurecollection