Color (@NotNull Project project, @NotNull VirtualFile file) { FileEditorManager manager = FileEditorManager.getInstance(project); if (manager instanceof FileEditorManagerImpl) { return ((FileEditorManagerImpl)manager).getFileColor(file); } return UIUtil.getLabelForeground(); }