void () { switch (myCurrSettingsType) { case BLANK_LINES_SETTINGS: for (BlankLinesOption blankLinesOption : BlankLinesOption.values()) { myCollectedFields.add(blankLinesOption.name()); } break; case SPACING_SETTINGS: for (SpacingOption spacingOption : SpacingOption.values()) { myCollectedFields.add(spacingOption.name()); } break; case WRAPPING_AND_BRACES_SETTINGS: for (WrappingOrBraceOption wrappingOrBraceOption : WrappingOrBraceOption.values()) { myCollectedFields.add(wrappingOrBraceOption.name()); } break; case COMMENTER_SETTINGS: for (CommenterOption commenterOption : CommenterOption.values()) { myCollectedFields.add(commenterOption.name()); } break; case INDENT_SETTINGS: for (IndentOption indentOption : IndentOption.values()) { myCollectedFields.add(indentOption.name()); } default: // ignore } }