Get first item in a list

RuleSet ruleSet = Iterables.getFirst(conditionData.getRuleSets(), null);