private static boolean typesEqual(PsiElement newChild, PsiElement oldChild) {
    return newChild != null && oldChild != null && newChild.getClass() == oldChild.getClass();
  }
private static boolean typesEqual(PsiElement newChild, PsiElement oldChild)