void (@NotNull final AnActionEvent e) { final DataContext dataContext = e.getDataContext(); final Presentation presentation = e.getPresentation(); presentation.setEnabledAndVisible(false); final Project project = e.getProject(); if (project != null) { final CoverageSuitesBundle currentSuite = CoverageDataManager.getInstance(project).getCurrentSuitesBundle(); if (currentSuite != null) { final CoverageEngine coverageEngine = currentSuite.getCoverageEngine(); if (coverageEngine.isReportGenerationAvailable(project, dataContext, currentSuite)) { presentation.setEnabledAndVisible(true); } } } }