import org.jetbrains.annotations.NotNull; class J { public static class A { public A(int i, @NotNull String s, @NotNull B b) { } } }