void (@NotNull PsiElement element, List<? super PsiComment> target) { if (element instanceof PsiWhiteSpace) { int newLineCount = (int)element.getText().chars().filter(value -> value == '\n').count(); if (newLineCount != 0) { myLineLayout.addBreaks(newLineCount); } return; } if (element instanceof PsiComment) { target.add((PsiComment)element); } }