void (@NotNull GrReferenceList list) { PsiElement prev = list.getPrevSibling(); if (!PsiImplUtil.isWhiteSpaceOrNls(prev)) { list.getParent().getNode().addLeaf(TokenType.WHITE_SPACE, " ", list.getNode()); } PsiElement next = list.getNextSibling(); if (!PsiImplUtil.isWhiteSpaceOrNls(next)) { list.getParent().getNode().addLeaf(TokenType.WHITE_SPACE, " ", list.getNode().getTreeNext()); } }