if (this.assistScope.isDefinedInSameUnit(binding.declaringClass)) {
JavaElement method = getJavaElementOfCompilationUnit(binding);
if (method != null) result[elementCount++] = method;
} else {
JavaElement method = Util.getUnresolvedJavaElement(binding, this.owner, EmptyNodeMap);
if (method != null) result[elementCount++] = method.resolved(binding);
}
} catch(AbortCompilation e) {
// log the exception and proceed
Util.logRepeatedMessage(e.getKey(), e);
}