Java annotation processing API accessing import statements <p>I am writing an AnnotationProcessor which is supposed to generate java code. It should generate a derived interface from certain existing interfaces.</p> <p>For this purpose I need to find the import statements of the original input code, so that I can output it in the generated java file.</p> <p>How can this be done?</p>