void (@NotNull ChangesBrowserNodeRenderer renderer, boolean selected, boolean expanded, boolean hasFocus) { // todo would be good to have render code in one place FilePath filePath = getUserObject().getPath(); renderer.appendFileName(filePath.getVirtualFile(), filePath.getName(), FileStatus.NOT_CHANGED.getColor()); if (renderer.isShowFlatten()) { appendParentPath(renderer, filePath.getParentPath()); } if (!renderer.isShowFlatten() && getFileCount() != 1 || getDirectoryCount() != 0) { appendCount(renderer); } Icon additionalIcon = getUserObject().getAddIcon(); if (additionalIcon != null) { renderer.setIcon(additionalIcon); } else { renderer.setIcon(filePath, filePath.isDirectory() || !isLeaf()); } }