Color (@NotNull TreePath path) { Object component = path.getLastPathComponent(); if (component instanceof ChangesBrowserNode<?> node) { node.cacheBackgroundColor(myProject); // use AsyncChangesTree to move this on pooled thread return node.getBackgroundColorCached(); } return null; }