private @Nullable String getRootProjectPath() {
    MavenProjectsManager projectsManager = MavenProjectsManager.getInstance(getProject());
    MavenProject rootProject = ContainerUtil.getFirstItem(projectsManager.getRootProjects());
    return ObjectUtils.doIfNotNull(rootProject, it -> it.getDirectory());
  }
private @Nullable String getRootProjectPath()