private static JComponent createNewLineButton(EditorTextField textField, int minSize, AnAction shiftEnterAction) {
    Presentation presentation = shiftEnterAction.getTemplatePresentation();
    int size = Math.max(JBUI.scale(16), minSize);
    Dimension d = new JBDimension(size, size, true);
    ActionButton button = new ActionButton(shiftEnterAction, presentation, ActionPlaces.UNKNOWN, d) {
      @Override
      protected DataContext getDataContext() {
        return DataManager.getInstance().getDataContext(textField);
      }

      @Override
      public Insets getInsets() {
        return JBInsets.emptyInsets();
      }
    };
    button.setLook(ActionButtonLook.INPLACE_LOOK);
    button.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    return button;
  }
private static JComponent createNewLineButton(EditorTextField textField, int minSize, AnAction shiftEnterAction)