void () { createAndSaveFile("pkg/Foo.java", """ package pkg; import java.lang.annotation.*; @Target({ElementType.TYPE_USE}) @interface Foo {}"""); createAndSaveFile("Abstract.java", """ import java.io.Writer; import pkg.Foo; abstract class Abstract { @Foo public abstract Writer getWriter(); } """); doTest(); }