void (int value, int allowedFlags, String specifier) { final int result = value & ~allowedFlags; if (result != 0) { final String flags = flagString(result); throw new IllegalFormatException( InspectionGadgetsBundle.message("format.string.error.flags.not.allowed", flags, specifier, flags.length())); } }