public class PatternUsedInSubsequentConditionCannotExtract { void x(Object o) { if (o instanceof String s ? s.equals("") : false) {} } }