Java packages are folders too. If you mark a directory of folder as sources root then folders inside (subdirectories) will be treated as packages. Currently it is not supported in IntelliJ-IDEA that folders inside a sources root will be treated as normal folders rather than packages.
Furthermore you can add resources like images or other files inside a Java Package but it isn't encouraged practice. There is dedicated resources folder for that purpose. Also note that there is no such thing as bot modules in Java.
A helpful blog: Read File from resources folder