void (CodeStyleSettings settings, Language language) { List<Value> values = getFormattingValues(settings, language); Random rand = new Random(); for (Value value : values) { Object[] possible = value.getPossibleValues(); int index = rand.nextInt(possible.length); value.value = possible[index]; value.write(false); } }