FileColorConfiguration (@NotNull String scopeName, boolean isProjectLevel) { List<FileColorConfiguration> configurations = isProjectLevel ? myProjectLevelConfigurations : myApplicationLevelConfigurations; for (FileColorConfiguration configuration : configurations) { if (scopeName.equals(configuration.getScopeName())) { return configuration; } } return null; }