public class Test { static class C<@NotNull T> {}; @NotNull String foo() { return ""; } }