PsiElement (YAMLKeyValue keyValue) { PsiElement sibling = keyValue.getNextSibling(); while (sibling instanceof PsiWhiteSpace && !sibling.getText().contains("\n")) { sibling = sibling.getNextSibling(); } return sibling; }