String (@NotNull VirtualFile file, Project project) { if (!file.isValid()) { return null; } return ReadAction.compute(() -> { final FileColorConfiguration configuration = findConfiguration(file); if (configuration != null && configuration.isValid(project)) { return configuration.getColorID(); } return null; }); }