public static @Nullable Language substituteLanguage(@NotNull Project project, @NotNull VirtualFile file) {
      RootType rootType = findRootType(file instanceof LightVirtualFile? ((LightVirtualFile)file).getOriginalFile() : file);
      if (rootType == null) return null;
      return rootType.substituteLanguage(project, file);
    }
public static @Nullable Language substituteLanguage(@NotNull Project project, @NotNull VirtualFile file)