boolean (int x) { int linkXCoordinate = x - myLinkOffset; if (linkXCoordinate < 0) { return false; } int index = myLink.findFragmentAt(linkXCoordinate); if (index == SimpleColoredComponent.FRAGMENT_ICON) { return true; } return index >= 0 && myLink.getFragmentTag(index) != null; }