boolean (@Nullable PsiType targetType, @NotNull PsiClass fromClass, @NotNull PsiElement context, @NotNull BiConsumer<? super String, ? super Validator.ValidationHost.ErrorType> messageConsumer) { if (targetType == null) return true; PsiType collectionItemType = JavaGenericsUtil.getCollectionItemType(targetType, fromClass.getResolveScope()); if (collectionItemType == null && InheritanceUtil.isInheritor(targetType, JavaFxCommonNames.JAVAFX_BEANS_PROPERTY)) { collectionItemType = getWritablePropertyType(targetType, fromClass.getProject()); } if (collectionItemType != null) { return canCoerceImpl(collectionItemType, fromClass, context, messageConsumer); } return canCoerceImpl(targetType, fromClass, context, messageConsumer); }