protected @Nullable Language fileLanguage(@NotNull Project project,
                                              @NotNull VirtualFile file) {
      Language lang = ScratchFileService.getInstance().getScratchesMapping().getMapping(file);
      return lang != null ? lang : LanguageUtil.getLanguageForPsi(project, file);
    }
protected @Nullable Language fileLanguage(@NotNull Project project,
                                              @NotNull VirtualFile file)