void (@NotNull AnActionEvent e) { final Project project = e.getProject(); if (project != null) { final PsiFile fileType = e.getData(CommonDataKeys.PSI_FILE); final Editor editor = fileType != null && StringUtil.equalsIgnoreCase(fileType.getFileType().getName(), "json") ? e.getData(CommonDataKeys.EDITOR) : null; new TestParseEventsSchemeDialog(project, editor).show(); } }