@Override
  public void insertClosingQuote(@NotNull Editor editor, int offset, @NotNull PsiFile file, @NotNull CharSequence closingQuote) {
    editor.getDocument().insertString(offset, "\n\"\"\"");
    Project project = file.getProject();
    PsiDocumentManager.getInstance(project).commitDocument(editor.getDocument());
    PsiElement token = file.findElementAt(offset);
    if (token == null) return;
    PsiElement parent = token.getParent();
    if (parent != null && BasicJavaAstTreeUtil.is(parent.getNode(), BASIC_LITERAL_EXPRESSION)) {
      CodeStyleManager.getInstance(project).reformat(parent);
      editor.getCaretModel().moveToOffset(parent.getTextRange().getEndOffset() - 3);
    }
  }
@Override
  public void insertClosingQuote(@NotNull Editor editor, int offset, @NotNull PsiFile file, @NotNull CharSequence closingQuote)