Create new package in IntelliJ
Follow these steps:
First set the folder as a "Sources Root" by right clicking and navigating to "Mark directory".
Right click on the same item
Select "New" → "Package"
In my case, I was not able to see the create new package option.
Disable Compact Empty Middle Packages option in the Project View
:
You will now see admin
as a separate node and will be able to create a new package inside it.
You can follow these steps:
Select the package from Project Pane
Double click the relevant section from the breadcrumb. Then it will get selected.
Right click on the same item
Select "New" → "Package" from the menu