@Override
      public boolean contains(@NotNull VirtualFile file) {
        if (file instanceof VirtualFileWithId && myFileBasedIndex != null) {
          return myFileBasedIndex.belongsToProjectIndexableFiles(file, myProject);
        }

        RootType rootType = RootType.forFile(file);
        if (rootType != null && (rootType.isHidden() || rootType.isIgnored(myProject, file))) return false;
        return true;
      }
@Override
      public boolean contains(@NotNull VirtualFile file)