Set<FormattingStateId> () { Set<FormattingStateId> result = EnumSet.noneOf(FormattingStateId.class); for (FormattingStateId state : values()) { if (state == this) { break; } result.add(state); } return result; }