static @Nullable CompilerReferenceService getInstanceIfEnabled(@NotNull Project project) {
    return Registry.is("compiler.ref.index") ? getInstance(project) : null;
  }
static @Nullable CompilerReferenceService getInstanceIfEnabled(@NotNull Project project)