private static boolean isInheritedConstructor(PsiMember member, PsiClass psiClass) {
    return member instanceof PsiMethod method && method.isConstructor() && method.getContainingClass() != psiClass;
  }
private static boolean isInheritedConstructor(PsiMember member, PsiClass psiClass)