boolean (@NotNull VirtualFile file, @NotNull SearchScope searchScope) { if (file instanceof VirtualFileWindow) { file = ((VirtualFileWindow)file).getDelegate(); } file = BackedVirtualFile.getOriginFileIfBacked(file); return searchScope.contains(file); }