import org.jetbrains.annotations.NotNull; class J { public static class Foo implements T { public Foo(int i, @NotNull String s) { } } }