private static double getHighConfidenceThreshold(PsmSpecificMap psmSpecificMap, int charge, String spectrumFileName, Double fdrThreshold) {
TargetDecoyResults trainingResults = new TargetDecoyResults();
trainingResults.setClassicalEstimators(true);
trainingResults.setClassicalValidation(true);
trainingResults.setFdrLimit(fdrThreshold);
TargetDecoySeries currentSeries = psmSpecificMap.getTargetDecoyMap(charge, spectrumFileName).getTargetDecoySeries();
currentSeries.getFDRResults(trainingResults);
return trainingResults.getConfidenceLimit();
}