}
private static boolean isOneLineText(@NotNull YAMLSequence sequence) {
PsiElementFragment<YAMLSequence> textSequenceFragment = JstdConfigFileUtils.buildSequenceTextFragment(sequence);
if (textSequenceFragment != null) {
DocumentFragment textFragment = textSequenceFragment.toDocumentFragment();
if (textFragment != null) {
Document document = textFragment.getDocument();
TextRange textRange = textFragment.getTextRange();
int startLine = document.getLineNumber(textRange.getStartOffset());
int endLine = document.getLineNumber(textRange.getEndOffset());
return startLine == endLine;
}
}