Object () { final List<Navigatable> navigatables = new ArrayList<>(); for (ExternalSystemNode each : getSelectedNodes(ExternalSystemNode.class)) { Navigatable navigatable = each.getNavigatable(); if (navigatable != null) navigatables.add(navigatable); } return navigatables.isEmpty() ? null : navigatables.toArray(Navigatable.EMPTY_NAVIGATABLE_ARRAY); }