@Nullable
  protected ArtifactResolver createCustomArtifactResolver(@Nullable MavenWorkspaceMap workspaceMap) {
    if (!myEmbedderSettings.useCustomDependenciesResolver()) {
      return null;
    }
    String resolverClassName =
      System.getProperty("intellij.custom.artifactResolver", CustomMaven36ArtifactResolver.class.getCanonicalName());
    if (resolverClassName == null || resolverClassName.isEmpty()) return null;
    try {
      ArtifactResolver artifactResolver = getComponent(ArtifactResolver.class);
      if (artifactResolver instanceof DefaultArtifactResolver) {
        Constructor<?> constructor = Class.forName(resolverClassName).getConstructor(ArtifactResolver.class);
        return (ArtifactResolver)constructor.newInstance(artifactResolver);
      }
    }
    catch (Exception e) {
      MavenServerGlobals.getLogger().error(e);
    }
    return null;
  }
@Nullable
  protected ArtifactResolver createCustomArtifactResolver(@Nullable MavenWorkspaceMap workspaceMap)