if (sym.isPackage()) {
if (sym.isPackage() || sym.isPackageClass()) {
    protected String filterModifiers(Symbol sym) {        int flags = sym.flags;        if (sym.isPackage()) {            if ((flags & Modifiers.FINAL) != 0)                flags = flags - Modifiers.FINAL;        }        if (sym.isModule()) {            if ((flags & Modifiers.FINAL) != 0)                flags = flags - Modifiers.FINAL;        }        if (sym.isTrait()) {            if ((flags & Modifiers.ABSTRACT) != 0)                flags = flags - Modifiers.ABSTRACT;            if ((flags & Modifiers.INTERFACE) != 0)                flags = flags - Modifiers.INTERFACE;        }        return Modifiers.Helper.toString(flags);    }