src/vs/workbench/browser/parts/views/treeView.ts/TreeRenderer/shouldShowThemeIcon
class TreeRenderer:	private shouldShowThemeIcon(hasResource: boolean, icon: ThemeIcon | undefined): icon is ThemeIcon {
		if (!icon) {
			return false;
		}

		if (hasResource && (this.isFileKindThemeIcon(icon) || !this.shouldShowFileIcons())) {
			return false;
		} else if (hasResource && (this.isFolderThemeIcon(icon) || !this.shouldShowFolderIcons())) {
			return false;
		}
		return true;
	}