boolean (@NotNull Project project, @NotNull VirtualFile file) { if (!ProjectRootManager.getInstance(project).getFileIndex().isInContent(file)) return false; final FileType fileType = file.getFileType(); return fileType == HtmlFileType.INSTANCE || fileType == XHtmlFileType.INSTANCE; }