use of com.intellij.psi.codeStyle.extractor.values.Gens in project intellij-community by JetBrains.
the class GenProcessor method runWithProgress.
@Override
public Gens runWithProgress(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();
Utils.resetRandom();
long startTime = System.nanoTime();
Utils.adjustValuesGA(forSelection, differ, indicator);
reportResult("GA", forSelection, differ, startTime, file.getName());
startTime = System.nanoTime();
Utils.adjustValuesMin(forSelection, differ, indicator);
reportResult("MIN", forSelection, differ, startTime, file.getName());
return forSelection;
}