int offset = member.getStartOuterOffset();
int start = member.getStartOffset();
    private int getCurrentMemberIndex(int caretPosition) {        int memberIndex = -1;        for (int i = 0; memberIndex == -1 && i < memberList.size(); i++) {            Member member = memberList.get(i);            int offset = member.getStartOuterOffset();            if (caretPosition >= offset) {                if (i < memberList.size() - 1) {                    Member nextMember = memberList.get(i + 1);                    int nextOffset = nextMember.getStartOuterOffset();                    if (caretPosition < nextOffset) {                        memberIndex = i;                    }                } else {                    memberIndex = i;                }            }        }        return memberIndex;    }