else if (tlse instanceof SourceModel.TypeClassDefn){
SourceModel.TypeClassDefn at = (SourceModel.TypeClassDefn) tlse;
// This is a hacky way of finding out where the cursor is until the source model is richer.
final int nClassMethods = at.getNClassMethodDefns();
for(int j = 0; j < nClassMethods; ++j){
ClassMethodDefn classMethod = at.getNthClassMethodDefn(j);
if (SourcePosition.compareByPosition.compare(classMethod.getSourceRangeOfName().getStartSourcePosition(), pos) <= 0){
if (classMethod.getSourceRangeOfClassDefn().containsPosition(pos)){
return new SourceElement[] {tlse, classMethod};
}
}
}
}