stmtType goHere = FastParser.firstClassOrFunction(doc, startLine, searchForward, pyEdit.isCythonFile());
NameTok node = getNameNode(goHere);
if (node != null) {
//ok, somewhere to go
pyEdit.revealModelNode(node);
} else {
//no place specified until now... let's try to see if we should go to the start or end of the file
if (searchForward) {
pyEdit.selectAndReveal(doc.getLength(), 0);