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
The directory or one of the parent directories must be marked as Source Root (In this case, it appears in blue).
Source Root
If this is not the case, right click your root source directory -> Mark As -> Source Root.