void (@NotNull AnActionEvent e) { final Module module = e.getData(LangDataKeys.MODULE_CONTEXT); final GlobalSearchScope scope = e.getData(TARGET_SCOPE_KEY); final Presentation presentation = e.getPresentation(); if (module != null && scope != null) { presentation.setVisible(true); presentation.setText(CodeInsightBundle.message("analyze.dependencies.on.scope.action.text", module.getName(), scope.getDisplayName())); } else { presentation.setVisible(false); } }