void (PsiJavaCodeReferenceElement extendsElement, PsiJavaCodeReferenceElement[] extendsElements) { final PsiElement target = extendsElement.resolve(); if (!(target instanceof PsiClass extendedInterface) || !extendedInterface.isInterface()) { return; } check(extendsElement, extendedInterface, extendsElements); }