@Override
  public @Nullable TextRange surroundElements(@NotNull Project project, @NotNull Editor editor, PsiElement @NotNull [] elements) {
    if (!isApplicable(elements)) {
      return null;
    }

    final JsonElementGenerator generator = new JsonElementGenerator(project);

    if (elements.length == 1) {
      JsonValue replacement = generator.createValue(createReplacementText(elements[0].getText()));
      elements[0].replace(replacement);
    }
    else {
      final String propertiesText = getTextAndRemoveMisc(elements[0], elements[elements.length - 1]);
      JsonValue replacement = generator.createValue(createReplacementText(propertiesText));
      elements[0].replace(replacement);
    }
    return null;
  }
@Override
  public @Nullable TextRange surroundElements(@NotNull Project project, @NotNull Editor editor, PsiElement @NotNull [] elements)