public void updateGroupPath(String oldname, String newname) {
        for(int i=0;i<groupNames.length;i++) {
            if (groupNames[i].equals(oldname)) {
                groupNames[i] = newname;
            }
        }

    }
Update this group path with the new group name wherever the old group name is found.
@param oldname old name
@param newname new name
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/GroupPath.java