package de.retest.recheck.configuration;

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

public class ProjectConfigurationUtil {

	private ProjectConfigurationUtil() {}

	public static Optional<Path> findProjectConfigurationFolder() {
		return ProjectRootFinderUtil.getProjectRoot()
				.map( path -> path.resolve( ProjectConfiguration.RETEST_PROJECT_CONFIG_FOLDER ) );
	}

	public static Optional<Path> findProjectConfigurationFolder( final Path basePath ) {
		return ProjectRootFinderUtil.getProjectRoot( basePath )
				.map( path -> path.resolve( ProjectConfiguration.RETEST_PROJECT_CONFIG_FOLDER ) );
	}

	public static Optional<Path> findProjectConfigurationProperties() {
		return ProjectRootFinderUtil.getProjectRoot()
				.map( path -> path.resolve( ProjectConfiguration.RETEST_PROJECT_PROPERTIES ) );
	}

	public static Optional<Path> findProjectConfigurationProperties( final Path basePath ) {
		return ProjectRootFinderUtil.getProjectRoot( basePath )
				.map( path -> path.resolve( ProjectConfiguration.RETEST_PROJECT_PROPERTIES ) );
	}
}

package de.retest.recheck.configuration;

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

public class ProjectConfigurationUtil {

	private ProjectConfigurationUtil() {}

	public static Optional<Path> findProjectConfigurationFolder() {
		return ProjectRootFinderUtil.getProjectRoot()
				.map( path -> path.resolve( ProjectConfiguration.RETEST_PROJECT_CONFIG_FOLDER ) );
	}

	public static Optional<Path> findProjectConfigurationFolder( final Path basePath ) {
		return ProjectRootFinderUtil.getProjectRoot( basePath )
				.map( path -> path.resolve( ProjectConfiguration.RETEST_PROJECT_CONFIG_FOLDER ) );
	}
}

Remove unused method