void (InspectionToolProvider @NotNull ... providers) { List<Class<? extends LocalInspectionTool>> classes = Stream.of(providers) .flatMap(p -> Stream.of(p.getInspectionClasses())) .filter(LocalInspectionTool.class::isAssignableFrom) .collect(Collectors.toList()); enableInspections(classes); }