get the declared field from the correct class