How to get PSI element for module item in 'packages' tree

I called action on module in 'Packages' scope view (it is root tree item when enabled option 'Show modules'). 
Action event handled in method. 

returns null.

But if I clicked on package, folder, or class then it will not be null.

Please sign in to leave a comment.