private PsiElement @NotNull [] getFilteredElements() {
    return StreamEx.of(myElements)
                   .filter(e -> !(e instanceof PsiWhiteSpace || e instanceof PsiComment || e instanceof PsiEmptyStatement))
                   .toArray(PsiElement.EMPTY_ARRAY);
  }
private PsiElement @NotNull [] getFilteredElements()