void () { InspectionProfileImpl profile = new InspectionProfileImpl("profile", InspectionToolRegistrar.getInstance(), (InspectionProfileImpl)null); assertEquals(0, countInitializedTools(profile)); List<InspectionToolWrapper<?, ?>> toolWrappers = profile.getInspectionTools(null); assertFalse(toolWrappers.isEmpty()); InspectionToolWrapper<?, ?> toolWrapper = profile.getInspectionTool(new DataFlowInspection().getShortName(), getProject()); assertNotNull(toolWrapper); String id = toolWrapper.getShortName(); profile.setToolEnabled(id, !profile.isToolEnabled(HighlightDisplayKey.findById(id))); assertThat(countInitializedTools(profile)).isEqualTo(0); profile.writeScheme(); var initializedTools = getInitializedTools(profile); assertEmpty(initializedTools.stream().map(InspectionToolWrapper::getShortName).collect(Collectors.joining(", ")), initializedTools); }