void (@Nullable Object element) { final String elementType = element != null ? element.toString() : null; if (elementType == someString()) { System.out.println(element.<warning descr="Method invocation 'hashCode' may produce 'NullPointerException'">hashCode</warning>()); } }