code: private static List<List<Chain>> findChains(String chainName, List<List<Chain>> polyModels) {
  		List<List<Chain>> models = new ArrayList<>();
  
  		for (List<Chain> chains:polyModels) {
  			List<Chain> matchingChains = new ArrayList<>();
  			models.add(matchingChains);
  			for (Chain c:chains) {
  				if (c.getName().equals(chainName)) {
  					matchingChains.add(c);
  				}
  			}
  		}
  		return models;
  	}
docs: Gets all chains with given chainName from given models list
  @param chainName
  @param polyModels
  @return