private @NotNull @NlsSafe String getStringToExtract(@NotNull UInjectionHost literalExpression) {
    if (mySelectionRange != null) {
      TextRange literalRange = Objects.requireNonNull(literalExpression.getSourcePsi()).getTextRange();
      TextRange intersection = literalRange.intersection(mySelectionRange);
      return literalExpression.asSourceString().substring(intersection.getStartOffset() - literalRange.getStartOffset(),
                                                             intersection.getEndOffset() - literalRange.getStartOffset());
    }
    return StringUtil.notNullize(literalExpression.evaluateToString());
  }
private @NotNull @NlsSafe String getStringToExtract(@NotNull UInjectionHost literalExpression)