private int moveWordOffset(int offset,
                               @MagicConstant(intValues = {BEFORE, HERE, AFTER}) int direction,
                               CaretStopPolicy stopPolicy,
                               boolean isCamel) {
      if (direction == AFTER) {
        return EditorActionUtil.getNextCaretStopOffset(editor, stopPolicy, isCamel);
      }
      if (direction == BEFORE) {
        return EditorActionUtil.getPreviousCaretStopOffset(editor, stopPolicy, isCamel);
      }
      return offset;
    }
private int moveWordOffset(int offset,
                               @MagicConstant(intValues = {BEFORE, HERE, AFTER}) int direction,
                               CaretStopPolicy stopPolicy,
                               boolean isCamel)