//Note: I couldn't really reproduce this case, so, this fix is just a theoretical
//workaround. Hopefully sometime someone will provide some code to reproduce this.
//see: http://sourceforge.net/tracker/?func=detail&aid=2992629&group_id=85796&atid=577329
int dotsFound = StringUtils.count(checkFor, '.');
if (dotsFound > 15) {
throw new CompletionRecursionException("Trying to go to deep to find definition.\n"
+ "We probably started entering a recursion.\n" + "Module: "
+ definition.module.getName() + "\n" + "Token: " + checkFor);
}
Definition[] realDefinitions;