@Override
  public void apply(Editor editor, AbstractBasicJavaSmartEnterProcessor processor, @NotNull ASTNode astNode) throws IncorrectOperationException {
    if (BasicJavaAstTreeUtil.is(astNode, BASIC_PARENTH_EXPRESSION)) {
      final ASTNode lastChild = astNode.getLastChildNode();
      if (lastChild != null && !")".equals(lastChild.getText())) {
        editor.getDocument().insertString(astNode.getTextRange().getEndOffset(), ")");
      }
    }
  }
@Override
  public void apply(Editor editor, AbstractBasicJavaSmartEnterProcessor processor, @NotNull ASTNode astNode)