void () { test(new NonnullInterface() { <warning descr="Method annotated with @Nullable must not override @NotNull method">@Nullable</warning> @Override public String nonNullMethod() { return null; } }); test(this::<warning descr="Method annotated with @Nullable must not override @NotNull method">getNull</warning>); test(this::getPrimitive); test(this::getNonAnnotated); test(WithImplicitConstructor::new); test(WithExplicitConstructor::new); }