import org.jetbrains.annotations.NotNull; class A { void f(@NotNull String s) { System.out.println(s); } }