TypeMatch (PsiClass valueClass, PsiClass targetPropertyClass, boolean isConvertible) { if (valueClass == null || targetPropertyClass == null) return UNDEFINED; if (InheritanceUtil.isInheritorOrSelf(valueClass, targetPropertyClass, true)) return ASSIGNABLE; if (isConvertible) return CONVERTIBLE; return INCOMPATIBLE; }