Paste as java statements: how about static import?

Recently I have been working with external libraries a lot, like org.docx4j. The typical pattern is that I have one solution to create java stubs for the compiled code, and a companion solution with sample java source code to experiment with the library and get to know it. The problem is this: when I paste sample code that relies on a static import, the static method is not resolved. It is somewhat tedious to fix it: 1/ figure out the class the static method belongs to, 2/ retype the statement, beginning with the class. Maybe there is a way to do better? Please advise.

Please sign in to leave a comment.