static Long ai_search_highestNumber(S term) { term += " "; long max = Long.MIN_VALUE; for (S s : fullIndexedTermsStartingWith(term)) { S i = trim(substring(s, l(term))); if (isInteger(i)) pcall-short { max = max(max, parseLong(i)); } } ret max == Long.MIN_VALUE ? null : max; }