@Nullable
  public JpsModuleSourceRootType<?> getRootType(@NotNull VirtualFile file) {
    SourceFolder folder = getSourceFolder(file);
    return folder != null ? folder.getRootType() : null;
  }
@Nullable
  public JpsModuleSourceRootType<?> getRootType(@NotNull VirtualFile file)