code: public static List<PolymerNotation> getListOfPolymersSpecificType(String str, List<PolymerNotation> polymers) {
      List<PolymerNotation> list = new ArrayList<PolymerNotation>();
      for (PolymerNotation polymer : polymers) {
        if (polymer.getPolymerID().getType().equals(str)) {
          list.add(polymer);
        }
      }
      return list;
    }
docs: method to get all polymers for one specific polymer type
  
  @param str specific polymer type
  @param polymers List of PolymerNotation
  @return List of PolymerNotation with the specific type