Add a disabled clear() method to Appender in the else branch to avoid UFCS hijacking.