Gens (Project project, CodeStyleSettings settings, PsiFile file, ProgressIndicator indicator) { final Gens origGens = new Gens(getFormattingValues(settings, file.getLanguage())); final Gens forSelection = origGens.copy(); final Differ differ = myLangExtractor.getDiffer(project, file, settings); forSelection.dropToInitial(); long startTime = System.nanoTime(); Utils.adjustValuesGA(forSelection, differ, indicator); myReport = "<br> Genetic phase: " + reportResult(forSelection, differ, startTime); startTime = System.nanoTime(); Utils.adjustValuesMin(forSelection, differ, indicator); myReport += "<br> Minimization Phase: " + reportResult(forSelection, differ, startTime); return forSelection; }