void () { if (myParents == null) { myParents = new HashMap<>(); NotificationParentGroupBean[] parents = EP_NAME.getExtensions(); for (NotificationParentGroupBean bean : parents) { myParents.put(bean.id, bean); } myChildren = new HashMap<>(); for (NotificationParentGroupBean bean : parents) { if (bean.parentId != null) { NotificationParentGroupBean parent = myParents.get(bean.parentId); if (parent != null) { List<NotificationParentGroupBean> children = myChildren.get(parent); if (children == null) { myChildren.put(parent, children = new ArrayList<>()); } children.add(bean); } } } myGroupToParent = new HashMap<>(); myReplaceTitles = new HashMap<>(); myShortTitles = new HashMap<>(); for (NotificationGroupBean bean : EP_CHILD_NAME.getExtensionList()) { NotificationParentGroupBean parent = myParents.get(bean.parentId); if (parent != null) { myGroupToParent.put(bean.groupId, parent); if (bean.replaceTitle != null) { myReplaceTitles.put(bean.groupId, bean.replaceTitle); } if (bean.shortTitle != null) { myShortTitles.put(bean.groupId, bean.shortTitle); } } } } }