Example:
if (obj instanceof String) { String str = (String) obj; System.out.println(str); }
Can be replaced with:
if (obj instanceof String str) { System.out.println(str); }
New in 2020.1