@Override
  public void apply(Editor editor, AbstractBasicJavaSmartEnterProcessor processor, @NotNull ASTNode astNode)
    throws IncorrectOperationException {
    if (!(BasicJavaAstTreeUtil.is(astNode, BASIC_SWITCH_EXPRESSION, BASIC_SWITCH_STATEMENT))) return;

    final ASTNode body = BasicJavaAstTreeUtil.getCodeBlock(astNode);
    if (body != null) return;

    final ASTNode rParenth = BasicJavaAstTreeUtil.getRParenth(astNode);
    assert rParenth != null;

    int offset = rParenth.getTextRange().getEndOffset();
    processor.insertBracesWithNewLine(editor, offset);
    editor.getCaretModel().moveToOffset(offset);
  }
@Override
  public void apply(Editor editor, AbstractBasicJavaSmartEnterProcessor processor, @NotNull ASTNode astNode)