package de.retest.recheck.configuration;

import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Optional;
import java.util.Set;

import com.google.common.collect.Sets;

import de.retest.recheck.util.OptionalUtil;

public class ProjectRootFinderUtil {

	private static final Set<ProjectRootFinder> projectRootFinder = Sets.newHashSet( new PathBasedProjectRootFinder() );

	private ProjectRootFinderUtil() {}

	public static Optional<Path> getProjectRoot() {
		final Path baseFolder = Paths.get( System.getProperty( ProjectConfiguration.RETEST_PROJECT_ROOT, "" ) );
		return getProjectRoot( baseFolder.toAbsolutePath() );
	}

	static Optional<Path> getProjectRoot( final Path basePath ) {
		return projectRootFinder.stream() //
				.map( finder -> finder.findProjectRoot( basePath ) ) //
				.flatMap( OptionalUtil::stream ) //
				.findAny();
	}

}

@@ -636,16 +636,23 @@
 );%0A%09%7D%0A%0A%09
+public 
 static O

Revert removed visibility for ProjectRootFinderUtil.getProjectRoot()