private static boolean isSourceItem(@Nullable JpsModuleSourceRootType<?> type) {
    return type == JavaSourceRootType.SOURCE;
  }
private static boolean isSourceItem(@Nullable JpsModuleSourceRootType<?> type)