Added a helper method to find the inherited condition.