private static boolean isDomElementVisitorMethod(PsiMethod method,
                                                   PsiClass containingClass) {
    if (!PsiTypes.voidType().equals(method.getReturnType()) ||
        !method.getName().startsWith("visit") ||
        method.getParameterList().getParametersCount() != 1 ||
        !InheritanceUtil.isInheritor(containingClass, "com.intellij.util.xml.DomElementVisitor")) {
      return false;
    }

    final PsiType psiType = Objects.requireNonNull(method.getParameterList().getParameter(0)).getType();
    return isDomElementInheritor(psiType);
  }
private static boolean isDomElementVisitorMethod(PsiMethod method,
                                                   PsiClass containingClass)