private static void copyExtendsListIfNotReplaced(PsiClass original, PsiClass query, PsiClass replacement) {
    copyReferenceListIfNotReplaced(original.getExtendsList(), query.getExtendsList(), replacement.getExtendsList());
  }
private static void copyExtendsListIfNotReplaced(PsiClass original, PsiClass query, PsiClass replacement)