private static boolean compareSubtypes(final PsiType type, final PsiType parentType) {
    return type != null && parentType != null && TypeConversionUtil.isAssignable(type, parentType);
  }
private static boolean compareSubtypes(final PsiType type, final PsiType parentType)