int length = methodHandles.length;
ISourceMethod[] methods = new ISourceMethod[length];
int methodIndex = 0;
for (int i = 0; i < length; i++) {
try {
ISourceMethod method = (ISourceMethod) methodHandles[i].getElementInfo();
methods[methodIndex++] = method;
} catch (JavaModelException e) {
// ignore
}
}