Fix NPE. Always use the event directory (don't choose). Find parent dir if a file was clicked.
https://github.com/ceylon/ceylon-ide-intellij/issues/20