I have a PsiPackage instance for which I wish to create the corresponding directories in a source root, if they don't exist, so that I may create a Properties file in that package. The directories may not exist since our project requires that properties files are stored in a separate source root from the java files. Any hints on how to do this correctly?
What if I have multiple source roots in which these directories could be created? How do I show the source root chooser dialog that IDEA uses when creating a class in a package that spans multiple directories?