void (@NotNull Project project, @NotNull PsiElement problemElement, @NotNull ModPsiUpdater updater) { PsiLiteralExpression literal = updater.getWritable(getTargetLiteral(problemElement)); if (literal != null) { Value value = Value.of(literal); if (value == null) return; final PsiElementFactory factory = JavaPsiFacade.getElementFactory(project); final PsiExpression newExpression = factory.createExpressionFromText('"' + StringUtil.escapeStringCharacters(value.fixCapitalization(myCapitalization)) + '"', problemElement); literal.replace(newExpression); } if (UastContextKt.toUElement(problemElement) instanceof UCallExpression call) { final Property property = updater.getWritable(getPropertyArgument(call)); Value value = Value.of(property, call.getValueArgumentCount() > 1); if (value == null) return; property.setValue(value.fixCapitalization(myCapitalization)); } }