feat(hintScopes): get scope descriptor from elements