Language (@NotNull final VirtualFile vFile, @NotNull final Project project) { final Module module = ModuleUtilCore.findModuleForFile(vFile, project); if (module == null) return null; boolean txtIsRst = ReSTService.getInstance(module).txtIsRst(); if (txtIsRst) return RestLanguage.INSTANCE; return null; }