void (Object value, CodeStyleSettings settings) { try { for (int i = 0; i < values.length; i++) { if (options[i].equals(value)) { field.setInt(getSettings(settings), values[i]); return; } } LOG.error("Invalid option value " + value + " for " + field.getName()); } catch (IllegalAccessException ignore) { } }