void () { String template = "package " + PACKAGE_NAME + ";import java.lang.annotation.*;\n\n@Target(%s)public @interface %s {}"; myFixture.addClass(String.format(Locale.ROOT, template, "ElementType.TYPE_USE", "NonNull")); myFixture.addClass(String.format(Locale.ROOT, template, "ElementType.TYPE_USE", "Nullable")); myFixture.addClass(String.format(Locale.ROOT, template, "ElementType.TYPE", "NullMarked")); }