void (@NotNull YAMLValue value) { adjustWhitespaceToContentType(value instanceof YAMLScalar); if (getValue() != null) { getValue().replace(value); return; } final YAMLElementGenerator generator = YAMLElementGenerator.getInstance(getProject()); if (isExplicit()) { if (findChildByType(YAMLTokenTypes.COLON) == null) { add(generator.createColon()); add(generator.createSpace()); add(value); } } else { add(value); } }