private static boolean areClassesDirectlyRelated(@NotNull PsiClass expectedQualifierClass, @NotNull PsiClass receiverClass) {
    return InheritanceUtil.isInheritorOrSelf(expectedQualifierClass, receiverClass, true)
           || InheritanceUtil.isInheritorOrSelf(receiverClass, expectedQualifierClass, true);
  }
private static boolean areClassesDirectlyRelated(@NotNull PsiClass expectedQualifierClass, @NotNull PsiClass receiverClass)