void (@NotNull AnActionEvent e) { Editor editor = isForContext() ? e.getData(CommonDataKeys.EDITOR) : null; Project project = e.getProject(); assert project != null; new PsiViewerDialog(project, editor).show(); }