private void openFileInEditor(@NotNull final Notification notification, @Nullable final VirtualFile file) {
if (file == null) return;
final FileEditorManager editorManager = FileEditorManager.getInstance(myProject);
final Editor editor = editorManager.openTextEditor(new OpenFileDescriptor(myProject, file), true);
final LogicalPosition logicalPosition = getLogicalPosition();
if(editor != null && logicalPosition != null) {
// Set correct caret position
// See https://github.com/johnlindquist/open-source-plugins/blob/master/QuickJump/src/com/johnlindquist/quickjump/QuickJumpAction.java
editor.getCaretModel().moveToVisualPosition(editor.logicalToVisualPosition(logicalPosition));