return null;
}
if (!isQuorumSource(fo)) {
return null;
}
LineCookie lineCookie = (LineCookie) n.getCookie(LineCookie.class);
if (lineCookie == null) {
return null;
}
EditorCookie editorCookie = (EditorCookie) n.getCookie(EditorCookie.class);
if (editorCookie == null) {
return null;
}
JEditorPane jEditorPane = getEditorPane(editorCookie);
if (jEditorPane == null) {
return null;
}
StyledDocument document = editorCookie.getDocument();
if (document == null) {
return null;
}
Caret caret = jEditorPane.getCaret();
if (caret == null) {
return null;
}
int lineNumber = NbDocument.findLineNumber(document, caret.getDot());
try {
Line.Set lineSet = lineCookie.getLineSet();
assert lineSet != null : lineCookie;
return lineSet.getCurrent(lineNumber);
} catch (IndexOutOfBoundsException ex) {
return null;
}