@NotNull
  @Override
  public List<? extends GotoRelatedItem> getItems(@NotNull DataContext context) {
    final FileEditor editor = PlatformCoreDataKeys.FILE_EDITOR.getData(context);
    if (!(editor instanceof ResourceBundleEditor resourceBundleEditor)) {
      return Collections.emptyList();
    }
    final Collection<ResourceBundleEditorViewElement> elements = resourceBundleEditor.getSelectedElements();
    if (elements.size() != 1) {
      return Collections.emptyList();
    }
    final IProperty[] properties = ContainerUtil.getFirstItem(elements).getProperties();
    if (properties == null || properties.length != 1 || !(properties[0] instanceof Property)) {
      return Collections.emptyList();
    }
    final IProperty property = properties[0];
    final String propertyKey = property.getKey();
    final PropertiesFile file = PropertiesImplUtil.getPropertiesFile(property.getPsiElement().getContainingFile());
    assert file != null;
    final ResourceBundle resourceBundle = file.getResourceBundle();
    return ContainerUtil.mapNotNull(resourceBundle.getPropertiesFiles(), f -> {
      final IProperty foundProperty = f.findPropertyByKey(propertyKey);
      return foundProperty == null ?
             null :
             new GotoRelatedItem(foundProperty.getPsiElement(), ResourceBundleEditorBundle.message("goto.property.declaration.group"));
    });
  }
@NotNull
  @Override
  public List<? extends GotoRelatedItem> getItems(@NotNull DataContext context)