public String getLastPathComponent() {
        return groupNames[groupNames.length-1];
    }
Get the last name in the path.
@return String
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/GroupPath.java