private static @NotNull List<PsiElement> getPsiElements(JBIterable<Object> selection) {
    return selection
      .filterMap(StructureViewComponent::unwrapWrapper)
      .filter(ResourceBundleEditorViewElement.class)
      .flatten(o -> JBIterable.<PsiElement>of(o.getFiles())
        .append(JBIterable.of(o.getProperties())
                  .map(IProperty::getPsiElement)
                  .filter(PsiElement::isValid)))
      .toList();
  }
private static @NotNull List<PsiElement> getPsiElements(JBIterable<Object> selection)