You can use plugin named: ProjectTree Color Highlighter (https://plugins.jetbrains.com/plugin/13951-projecttree-color-highlighter)