boolean (final Point maxPoint) { if (myCommon <= 1 && maxPoint.myCommon > 1) return false; if (maxPoint.myCommon <= 1 && myCommon > 1) return true; return (myDistance < maxPoint.getDistance()) || (myDistance == 0 && maxPoint.getDistance() == 0 && myContextDistance < maxPoint.myContextDistance); }