void (HyperlinkEvent e) { Window window = ComponentUtil.getActiveWindow(); if (window instanceof DialogWrapperDialog dialog) { dialog.getDialogWrapper().close(DialogWrapper.CANCEL_EXIT_CODE); ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow("Python Packages"); if (toolWindow != null) toolWindow.show(); } }