I want to be able to get the current package I am in or get a list of all the packages in the project so I can choose the one i want. As far as I can see I can only get a package by refering to it's nam, like so:
PsiPackage thePackage= JavaPsiFacade.getInstance(project).findPackage("package name");
Also is there a way to get all the sub packages without having to do a recursive function that looks for them?
The reason I want this is becouse I want to go trough a package, find all the classes in that package and it's sub packages and save a list of all the methods in them.