@Override
  public synchronized boolean isIndexed(@NotNull VirtualFile root) {
    return isIndexingEnabled(root) &&
           (!myCommitsToIndex.containsKey(root) && !isIndexingIsProgress(root));
  }
@Override
  public synchronized boolean isIndexed(@NotNull VirtualFile root)