private static boolean isChained(PsiMethod first, PsiMethod last) {
    if (first == null) return false;
    if (first == last) return true;
    return isChained(CommonJavaRefactoringUtil.getChainedConstructor(first), last);
  }
private static boolean isChained(PsiMethod first, PsiMethod last)