boolean (PsiMethod method) { return ContainerUtil.and(method.getHierarchicalMethodSignature().getSuperSignatures(), signature -> { PsiMethod superMethod = signature.getMethod(); if (superMethod == myMethod) { return true; } if (JavaLanguage.INSTANCE == method.getLanguage() && Objects.requireNonNull(superMethod.getContainingClass()).isInterface()) { return !PsiUtil.isLanguageLevel6OrHigher(method); } return false; }); }