void (Predicate<? super DataNode<?>> booleanFunction, final boolean ignored) { final ExternalProjectInfo externalProjectInfo = ProjectDataManagerImpl.getInstance().getExternalProjectData( myProject, getExternalSystemId(), getCurrentExternalProjectSettings().getExternalProjectPath()); assertNotNull(externalProjectInfo); final DataNode<ProjectData> projectDataNode = externalProjectInfo.getExternalProjectStructure(); assertNotNull(projectDataNode); final Collection<DataNode<?>> nodes = ExternalSystemApiUtil.findAllRecursively(projectDataNode, booleanFunction); for (DataNode<?> node : nodes) { node.visit(dataNode -> dataNode.setIgnored(ignored)); } ProjectDataManager.getInstance().importData(projectDataNode, myProject); }