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

    if (BasicJavaAstTreeUtil.getConditionalExpressionThenExpression(astNode) == null ||
        astNode.findChildByType(JavaTokenType.COLON) != null) {
      return;
    }


    editor.getCaretModel().moveToOffset(astNode.getTextRange().getEndOffset());
    EditorModificationUtilEx.insertStringAtCaret(editor, ": ");
    processor.setSkipEnter(true);
  }
@Override
  public void apply(Editor editor, AbstractBasicJavaSmartEnterProcessor processor, @NotNull ASTNode astNode)