textArea.setCaretPosition(textArea.getBufferLength() - 1, true);
textArea.setCaretPosition(textArea.getBufferLength(), true);
    public static void nextMethod(View view) {        if(isRubyFile(view)) {            RubyMembers members = RubyParser.getMembers(view);            if (!members.containsErrors()) {                JEditTextArea textArea = view.getTextArea();                int caretPosition = textArea.getCaretPosition();                Member member = members.getNextMember(caretPosition);                if (member != null) {                    textArea.setCaretPosition(member.getStartOffset(), true);                } else {                    textArea.setCaretPosition(textArea.getBufferLength() - 1, true);                }            }        } else {            SideKickActions.goToNextAsset(view);        }    }