@Override
  public Set<MavenArtifactInfo> search(final String pattern, final int maxResult) {
    IndexData indexData = myData;
    if (indexData == null) return Collections.emptySet();
    return doIndexAndRecoveryTask(() -> indexData.search(pattern, maxResult), Collections.emptySet());
  }
@Override
  public Set<MavenArtifactInfo> search(final String pattern, final int maxResult)