if (factories != null) {
matcher = SappyMasterMatcher.findMatcher(matcher, factories, document, caret, true, 1);
if (matcher[0] != null) {
SappyMasterMatcher mastermatcher = new SappyMasterMatcher(text);
SappyMasterMatcher.Result result = mastermatcher.new Result(document, caret, "backward", 0, 1, 1);
int [] origin = null;
int [] match = null;