public static List<String> parseGroupings(String source, char startChar, char endChar)
			throws ParseException {
		List<String> results = new ArrayList<>();
		int index = 0;

		while (index < source.length()) {
			int groupStart = findNextNonWhiteSpaceChar(source, index);
			if (groupStart < 0) {
				break;
			}
			if (source.charAt(groupStart) != startChar) {
				throw new ParseException("Error parsing groupings for " + source, index);
			}
			int groupEnd = findMatchingEnd(source, groupStart + 1, startChar, endChar);
			if (groupEnd < 0) {
				throw new ParseException("Error parsing groupings for " + source, index);
			}
			results.add(source.substring(groupStart + 1, groupEnd));
			index = groupEnd + 1;
		}
		return results;
	}
Parses the given source string into a list of strings, one for each group. The startChar
and endChar defined the group characters. So, for example, "(ab (cd))(ef)((gh))" would 
result in a list with the following values: "ab (cd)", "ef", and "(gh)"
@param source the source string to parse into groups
@param startChar the character that defines the start of a group
@param endChar the character that defines then end of a group
@return a List of strings, one for each consecutive group contained in the string
@throws ParseException if the groupings are not balanced or missing altogether
Ghidra/Framework/Gui/src/main/java/generic/theme/ThemeValueUtils.java