void (Object object) { if (!(object instanceof final String <caret>txt)) { return; } else if ((object instanceof Number n)) { System.out.println(txt); System.out.println(n); } else { System.out.println(txt); } System.out.println(txt); }