void () { setupAmbiguousAnnotations("ambiguous", myFixture); NullableNotNullManager nnnManager = NullableNotNullManager.getInstance(getProject()); nnnManager.setDefaultNotNull("ambiguous.NotNull"); nnnManager.setDefaultNullable("ambiguous.Nullable"); Disposer.register(getTestRootDisposable(), () -> { nnnManager.setDefaultNotNull(AnnotationUtil.NOT_NULL); nnnManager.setDefaultNullable(AnnotationUtil.NULLABLE); }); doTest(); }