}
tok.append(s);
}
try {
IDefinition[] definitions = mod.findDefinition(CompletionStateFactory.getEmptyCompletionState(
tok.toString(), nature, new CompletionCache()), -1, -1, nature);
List<ItemPointer> pointers = new ArrayList<ItemPointer>();
PyRefactoringFindDefinition.getAsPointers(pointers, (Definition[]) definitions);
if (pointers.size() > 0) {
new PyOpenAction().run(pointers.get(0));