void (@NotNull AnActionEvent e) { final DataContext dataContext = e.getDataContext(); Project project = CommonDataKeys.PROJECT.getData(dataContext); if (project == null){ return; } PsiFile psiFile = CommonDataKeys.PSI_FILE.getData(dataContext); if (psiFile != null){ analyze(project, psiFile); } }