@NotNull
  private MavenSession createMavenSession(MavenExecutionRequest request, DefaultMaven maven) {
    DefaultSessionFactory factory = getComponent(DefaultSessionFactory.class);
    RepositorySystem repositorySystem = getComponent(RepositorySystem.class);
    RepositorySystemSession repositorySession = maven.newRepositorySession(request);
    request.getProjectBuildingRequest().setRepositorySession(repositorySession);
    MavenSession session = new MavenSession(getContainer(), repositorySession, request, new DefaultMavenExecutionResult());
    DefaultSessionFactory defaultSessionFactory = getComponent(DefaultSessionFactory.class);
    session.setSession(defaultSessionFactory.newSession(session));
    return session;
  }
@NotNull
  private MavenSession createMavenSession(MavenExecutionRequest request, DefaultMaven maven)