void (TextBuffer buffer, int flags, int allowed, boolean isInterface, int excluded) { flags &= allowed; if (!isInterface) excluded = 0; for (int modifier : MODIFIERS.keySet()) { if ((flags & modifier) == modifier && (modifier & excluded) == 0) { buffer.append(MODIFIERS.get(modifier)).append(' '); } } }