package foo; import static foo.JavaTest.*; // here could be the correct import for bar public class JavaTest { public void test() { bar(); } }