@Override
	public String getAfterIndex(int part, int index) {
		String text = field.getText();
		if (index < 0 || index >= text.length() - 1) {
			return null;
		}

		switch (part) {
			case AccessibleText.CHARACTER:
				return text.substring(index + 1, index + 2);
			case AccessibleText.WORD:
				BreakIterator words = BreakIterator.getWordInstance(locale);
				words.setText(text);
				int start = words.following(index);
				if (start == BreakIterator.DONE || start >= text.length()) {
					return null;
				}
				int end = words.following(start);
				if (end == BreakIterator.DONE || end > text.length()) {
					return null;
				}
				return text.substring(start, end);
			case AccessibleText.SENTENCE:
				BreakIterator sentences = BreakIterator.getSentenceInstance(locale);
				sentences.setText(text);
				start = sentences.following(index);
				if (start == BreakIterator.DONE || start > text.length()) {
					return null;
				}
				end = sentences.following(start);
				if (end == BreakIterator.DONE || end > text.length()) {
					return null;
				}
				return text.substring(start, end);
			default:
				return null;
		}
	}
Returns the field associated with this AccessibleField.
@return the field associated with this AccessibleField
Ghidra/Framework/Docking/src/main/java/docking/widgets/fieldpanel/AccessibleField.java