}
private static IModelElement getSourceElement(ISourceModule sourceModule, int offset, int length) throws CoreException {
IModelElement sourceElement = PDTModelUtils.getSourceElement(sourceModule, offset, length);
if (sourceElement instanceof IMethod) {
IMethod farthestOverriddenMethod = new PHPMethod((IMethod) sourceElement).getFarthestOverriddenMethod();
if (sourceElement.equals(farthestOverriddenMethod)) {
return sourceElement;
} else {
return farthestOverriddenMethod;
}