public static List<PortRangeContext> create(int numberOfContexts) {
    return IntStream.range(0, numberOfContexts)
      .mapToObj(i -> new PortRangeContext(i, numberOfContexts))
      .collect(toList());
  }
Return a list with the specified number of distinct port range contexts.
build-tools/geode-testing-isolation/src/main/java/org/apache/geode/gradle/testing/isolation/PortRangeContext.java