private static File determineRootDir(ConnectionParameters connectionParameters) {
      return (new BuildLayoutFactory()).getLayoutFor(
        connectionParameters.getProjectDir(),
        connectionParameters.isSearchUpwards() != null ? connectionParameters.isSearchUpwards() : true).getRootDirectory();
    }
private static File determineRootDir(ConnectionParameters connectionParameters)