private static void collectSubclassesDescriptors(@Nullable PsiType psiType,
                                                   final @NotNull List<XmlElementDescriptor> descriptors,
                                                   @NotNull PsiElement context) {
    final PsiClass aClass = PsiUtil.resolveClassInType(psiType);
    if (aClass != null) {
      if (CommonClassNames.JAVA_LANG_OBJECT.equals(aClass.getQualifiedName())) {
        collectRawPropertyDescriptors(descriptors, context);
        return;
      }
      ClassInheritorsSearch.search(aClass, aClass.getUseScope(), true, true, false)
        .forEach(psiClass -> {
          addElementDescriptor(descriptors, psiClass);
          return true;
        });
      addElementDescriptor(descriptors, aClass);
    }
  }
private static void collectSubclassesDescriptors(@Nullable PsiType psiType,
                                                   final @NotNull List<XmlElementDescriptor> descriptors,
                                                   @NotNull PsiElement context)