YAMLKeyValue () { YAMLKeyValue firstKeyValue = findChildByType(YAMLElementTypes.KEY_VALUE_PAIR); if (firstKeyValue == null) { throw new IllegalStateException(EMPTY_MAP_MESSAGE); } return firstKeyValue; }