@Override
  public void apply(Editor editor, AbstractBasicJavaSmartEnterProcessor processor, @NotNull ASTNode astNode)
    throws IncorrectOperationException {
    if (astNode.getElementType() == JavaTokenType.STRING_LITERAL &&
        !StringUtil.endsWithChar(astNode.getText(), '\"')) {
      editor.getDocument().insertString(astNode.getTextRange().getEndOffset(), "\"");
    }
    else if (astNode.getElementType() == JavaTokenType.CHARACTER_LITERAL &&
             !StringUtil.endsWithChar(astNode.getText(), '\'')) {
      editor.getDocument().insertString(astNode.getTextRange().getEndOffset(), "'");
    }
  }
@Override
  public void apply(Editor editor, AbstractBasicJavaSmartEnterProcessor processor, @NotNull ASTNode astNode)