boolean (@NotNull PyTargetExpression attribute, @NotNull Property property) { final Collection<PyTargetExpression> propertyTargetExpressions = getSetterTargetExpressions(property); return propertyTargetExpressions != null && attribute.getName() != null && StreamEx.of(propertyTargetExpressions) .map(targetExpression -> targetExpression.getName()) .nonNull() .anyMatch(name -> name.equals(attribute.getName())); }