private final LoadingCache<Category, LongAdder> categoryCounts
= CacheBuilder.newBuilder().build(CacheLoader.from(this::getCategoryCountHelper));
public void setDb(DrawableDB db) {
this.db = db;
categoryCounts.invalidateAll();
<BUG>Category.clearTagNames();
}</BUG>
public long getCategoryCount(Category cat) {
if (cat == Category.ZERO) {
long allOtherCatCount = getCategoryCount(Category.ONE) + getCategoryCount(Category.TWO) + getCategoryCount(Category.THREE) + getCategoryCount(Category.FOUR) + getCategoryCount(Category.FIVE);

private final LoadingCache<Category, LongAdder> categoryCounts
= CacheBuilder.newBuilder().build(CacheLoader.from(this::getCategoryCountHelper));
public void setDb(DrawableDB db) {
this.db = db;
categoryCounts.invalidateAll();
Category.clearTagNames();
TagUtils.clearFollowUpTagName();
}
public long getCategoryCount(Category cat) {
if (cat == Category.ZERO) {
long allOtherCatCount = getCategoryCount(Category.ONE) + getCategoryCount(Category.TWO) + getCategoryCount(Category.THREE) + getCategoryCount(Category.FOUR) + getCategoryCount(Category.FIVE);
