We\'re creating a new project in IntelliJ and must have something wrong because when we right click on a directory, select New and then get the context menu, Java b
If you open your module settings (F4) you can nominate which paths contain 'source'. Intellij will then mark these directories in blue and allow you to add classes etc.
In a similar fashion you can highlight test directories for unit tests.