void () { Registry.get("idea.report.nullity.missing.in.generated.overriders").setValue(false, getTestRootDisposable()); myInspection.REPORT_ANNOTATION_NOT_PROPAGATED_TO_OVERRIDERS = true; myFixture.addClass("package foo; public class GenMyTestClass implements MyTestClass { String implementMe() {} }"); doTest(); }