private static void add(ResourcePart resourcePart, int min, int max) { resourcePart.add(new LongRange((long) min, (long) max)); }