void (@NotNull AnActionEvent e) { final Navigatable[] navigatableArray = e.getData(CommonDataKeys.NAVIGATABLE_ARRAY); if (navigatableArray != null && navigatableArray.length > 0) { ApplicationManager.getApplication().invokeLater(() -> OpenSourceUtil.navigate(navigatableArray)); DialogWrapper dialog = DialogWrapper.findInstance(mySourceComponent); if (dialog != null && dialog.isModal()) { dialog.doCancelAction(); } } }