static MultiMap irParseHashes(S result) { MultiMap hashToRect = new MultiMap; Matcher matcher = Pattern.compile("(\\d+, *\\d+, *\\d+, *\\d+) -> ([0-9a-zA-Z\\.]+)").matcher(result); while (matcher.find()) { Rectangle r = RectUtil.stringToRect(matcher.group(1)); String hash = matcher.group(2); hashToRect.put(hash, r); } ret hashToRect; }