public static boolean isInContentRoot(VirtualFile file, ProjectFileIndex index) {
    return file.equals(index.getContentRootForFile(file));
  }
public static boolean isInContentRoot(VirtualFile file, ProjectFileIndex index)