void (MavenProject mavenProject, MultiMap<JpsModuleSourceRootType<?>, String> roots) { roots.putValues(JavaSourceRootType.TEST_SOURCE, mavenProject.getTestSources()); for (MavenResource each : mavenProject.getTestResources()) { roots.putValue(JavaResourceRootType.TEST_RESOURCE, each.getDirectory()); } BuildHelperMavenPluginUtil.addBuilderHelperPaths(mavenProject, "add-test-source", path -> roots.putValue(JavaSourceRootType.TEST_SOURCE, path)); BuildHelperMavenPluginUtil.addBuilderHelperResourcesPaths(mavenProject, "add-test-resource", path -> roots.putValue(JavaResourceRootType.TEST_RESOURCE, path)); }