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