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