Add code below to ~/.local/share/nemo/actions/intellij.nemo_action
[Nemo Action]
Name=Open in Intellij
Comment=Open in Intellij
Exec=sh -c '"$HOME/.local/share/JetBrains/Toolbox/apps/intellij-idea-community-edition/bin/idea" "%F"'
Icon-Name=intellij
Selection=Any
Extensions=dir;
Then in files go to folder you want to open with intellij then right click and choose open in intellij.