TBItemAnActionButton (@NotNull AnAction action) { TouchBarStats.AnActionStats stats; if (myStats == null) { stats = null; } else { stats = myStats.getActionStats(Helpers.getActionId(action)); } return new TBItemAnActionButton(myItemListener, action, stats); }