switch (type) { case BOTH: criteria = bothLinksAreShorterThanThreshold(inLink, outLink, thresholdLength); break; case EITHER: switch (type) { case BOTH: isHavingShortLinks = bothLinksAreShorterThanThreshold(inLink, outLink, thresholdLength); break; case EITHER: