void checkNoMods(long mods) {
        if (mods != 0) {
            long lowestMod = mods & -mods;
            error(S.pos(), "mod.not.allowed.here",
                      Flags.asFlagSet(lowestMod));
        }
    }