if(typeVariableBinding.declaringElement instanceof ParameterizedTypeBinding) {
LocalTypeBinding localTypeBinding = (LocalTypeBinding)((ParameterizedTypeBinding)typeVariableBinding.declaringElement).genericType();
res = findLocalElement(localTypeBinding.sourceStart());
} else {
SourceTypeBinding typeBinding = (SourceTypeBinding)typeVariableBinding.declaringElement;
res = findLocalElement(typeBinding.sourceStart());
}
if (res != null && res.getElementType() == IJavaElement.TYPE) {
IType type = (IType) res;
ITypeParameter typeParameter = type.getTypeParameter(new String(typeVariableBinding.sourceName));
if (typeParameter.exists()) {