int (GroupingElement groupingElement) { synchronized (myLock) { final List<NavigatableMessageElement> children = myGroupNameToMessagesMap.get(groupingElement.getName()); return children == null ? 0 : children.size(); } }