cherry-pick b9669b6
isAssignable (IDEA-97276)