Boolean (@NotNull List<HighlightDisplayKey> selectedInspectionsNodes) { return selectedInspectionsNodes .stream() .map(key -> mySettings.getInspectionProfile().getTools(key.toString(), mySettings.getProject())) .flatMap(tools -> tools.isEnabled() ? tools.getTools().stream().map(ScopeToolState::isEnabled) : Stream.of(false)) .distinct() .collect(MoreCollectors.onlyOne()).orElse(null); }