@Nullable
	public AstResolveResult resolveThenAdapt(int position) {
		// Find the deepest model at position.
		Model model = getUnit();
		while (true) {
			it:
			{
				for (Model child : model.getChildren()) {
					if (child.getRange().isWithin(position) && !(child instanceof ErroneousModel)) {
						model = child;
						break it;
					}
				}
				break;
			}
		}

		// Resolve the content at the given position then adapt it.
		Resolution resolution = resolveAt(position, model);
		return adapt(resolution, model);
	}
@param position
		Absolute position in the source code of the item we want to resolve.

@return Our mapped resolution result which points to a path in the workspace for the resolved content.
recaf-core/src/main/java/software/coley/recaf/services/source/ResolverAdapter.java