private boolean isCapped(DocLineComparator ancestor, DocLineComparator left, DocLineComparator right) { if (isCappingDisabled()) return false; int aLength = ancestor == null? 0 : ancestor.getRangeCount(); int lLength = left.getRangeCount(); int rLength = right.getRangeCount(); if ((double) aLength * (double) lLength > LCS.TOO_LONG || (double) aLength * (double) rLength > LCS.TOO_LONG || (double) lLength * (double) rLength > LCS.TOO_LONG) return true; return false; }