private Navigatable @NotNull [] getNavigatableArray() {
    List<DirDiffElementImpl> elements = myModel.getSelectedElements();
    List<Navigatable> navigatables = new ArrayList<>();
    for (DirDiffElementImpl element : elements) {
      DiffElement source = element.getSource();
      DiffElement target = element.getTarget();
      Navigatable navigatable1 = source != null ? source.getNavigatable(myProject) : null;
      Navigatable navigatable2 = target != null ? target.getNavigatable(myProject) : null;
      if (navigatable1 != null) navigatables.add(navigatable1);
      if (navigatable2 != null) navigatables.add(navigatable2);
    }
    return navigatables.toArray(Navigatable.EMPTY_NAVIGATABLE_ARRAY);
  }
private Navigatable @NotNull [] getNavigatableArray()