code: private static void parseItemChildElements(XmlPullParser parser, PrivacyItem privacyItem) throws XmlPullParserException, IOException {
          final int initialDepth = parser.getDepth();
  
          outerloop: while (true) {
              int eventType = parser.next();
              switch (eventType) {
              case XmlPullParser.START_TAG:
                  String name = parser.getName();
                  switch (name) {
                  case "iq":
                      privacyItem.setFilterIQ(true);
                      break;
                  case "message":
                      privacyItem.setFilterMessage(true);
                      break;
                  case "presence-in":
                      privacyItem.setFilterPresenceIn(true);
                      break;
                  case "presence-out":
                      privacyItem.setFilterPresenceOut(true);
                      break;
                  }
                  break;
              case XmlPullParser.END_TAG:
                  if (parser.getDepth() == initialDepth) {
                      break outerloop;
                  }
              }
          }
      }
docs: CHECKSTYLE:ON