void (Object object) { if (!(object instanceof String)) { return; } else { final String txt = (String) object; System.out.println(txt); } final String txt = (String) object; System.out.println(txt); }