private static boolean isPartOf(@NotNull PsiClass aClass, @Nullable PsiClass containingClass) {
    if (containingClass == null) return false;
    return aClass.equals(containingClass) || aClass.isInheritor(containingClass, true);
  }
private static boolean isPartOf(@NotNull PsiClass aClass, @Nullable PsiClass containingClass)