. . .
private final Locator loginBox = Locator.buildLocator ()
.web (By.id ("login_button_container"))
.android (AppiumBy.accessibilityId ("test-Login"))
.name ("Login Box")
.build ();
private final Locator username = Locator.buildLocator ()
.web (By.id ("user-name"))
.android (AppiumBy.accessibilityId ("test-Username"))
.name ("User Name")
// highlight-next-line
.parent (this.loginBox)
.build ();
. . .