BuildTargetTypeState (BuildTargetType<?> type) { BuildTargetTypeState state = myTypeStates.get(type); if (state == null) { final BuildTargetTypeState newState = new BuildTargetTypeState(type, this); state = myTypeStates.putIfAbsent(type, newState); if (state == null) { state = newState; } } return state; }