import org.jetbrains.annotations.NotNull; class Test { Object o; void field() { o.hashCode(); } void parameter(Object o) { o.hashCode(); } void callUnknownMethod() { unknownObject().hashCode(); } void callNotNullMethod() { knownObject().hashCode(); } native Object unknownObject(); @NotNull native Object knownObject(); } enum DemoEnum { TEST, DEMO, DEMO_1; public static DemoEnum testMethod(String value){ for (DemoEnum demoEnum : DemoEnum.values()) { } return null; } }