boolean (@NotNull AnActionEvent e) { Project project = e.getProject(); if (project == null) { return false; } TestFrameworkRunningModel model = getModel(); if (model == null || model.getRoot() == null) { return false; } RunProfile profile = model.getProperties().getConfiguration(); if (profile instanceof RunConfiguration && !((RunConfiguration)profile).getType().isDumbAware() && DumbService.isDumb(project)) { return false; } Filter filter = getFailuresFilter(); for (AbstractTestProxy test : model.getRoot().getAllTests()) { //noinspection unchecked if (filter.shouldAccept(test)) { return true; } } return false; }