boolean (@NotNull VirtualFile file, @NotNull Project project) { if (ScratchUtil.isScratch(file)) return true; ProjectFileIndex fileIndex = getFileIndex(project); return fileIndex != null && fileIndex.isInContent(file); }