public @NotNull BuildTargetConfiguration getTargetConfiguration(@NotNull BuildTarget<?> target) {
    return getTypeState(target.getTargetType()).getConfiguration(target);
  }
public @NotNull BuildTargetConfiguration getTargetConfiguration(@NotNull BuildTarget<?> target)