added missing dependency to resolve indirectly referenced class problem
STS-3431: minor optimizations for resolving fields and methods to avoid type hierarchy traversal, if possible