private Register[] getChildren(Register parent, List<Register> regList) {
		ArrayList<Register> children = new ArrayList<>();
		Iterator<Register> it = regList.iterator();
		while (it.hasNext()) {
			Register register = it.next();
			if (contains(parent, register)) {
				children.add(register);
				it.remove();
			}
		}
		return children.toArray(new Register[children.size()]);

	}
Compute current register collection and instantiate a {@link RegisterManager}
@return new register manager instance
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/RegisterBuilder.java