BuildTargetConfiguration (BuildTarget<?> target) { BuildTargetConfiguration configuration = myConfigurations.get(target); if (configuration == null) { configuration = new BuildTargetConfiguration(target, myTargetsState); final BuildTargetConfiguration existing = myConfigurations.putIfAbsent(target, configuration); if (existing != null) { configuration = existing; } } return configuration; }