public static List<String> scanForFormulas(final Collection<String> texts, final Collection<String> excludeFormulas) {
        final List<String> patterns = new ArrayList<>();
        final Set<String> patternsFound = new HashSet<>(excludeFormulas == null ? Collections.emptySet() : excludeFormulas);
        for (String text : texts) {
            scanText(text, patterns, patternsFound);
        }
        Collections.sort(patterns, TextUtils.COLLATOR::compare);
        return patterns;
    }
Holds implementations for functions in Formula
main/src/main/java/cgeo/geocaching/utils/formulas/FormulaUtils.java