private static boolean isResourceItem(@Nullable JpsModuleSourceRootType<?> type) {
    return type == JavaResourceRootType.RESOURCE;
  }
private static boolean isResourceItem(@Nullable JpsModuleSourceRootType<?> type)