private static List<StandardMethodContract> knownContracts(List<PreContract> values) {
    return ContainerUtil.mapNotNull(values, pc -> pc instanceof KnownContract ? ((KnownContract)pc).getContract() : null);
  }
private static List<StandardMethodContract> knownContracts(List<PreContract> values)