Accessible (Point p) { Crumb crumb = getCrumbAt(p.x, p.y); if (crumb != null) { int index = -1; for (int i = 0; i < views.size(); i++) { CrumbView view = views.get(i); if (view.crumb == crumb) { index = i; break; } } if (index != -1) { return new AccessibleCrumb(index, crumb.getText()); } } return null; }