/// - [ReprSelectError::AlreadySelected] if a different representation is already selected for this reference
/// If this reference has this specific representation selected, get its state as a concrete type
pub fn with_resolved_expression<T>(&self, inspect: impl FnOnce(&Expression) -> T) -> Option<T> {