List<Navigatable> () { if (myNavigatable != null) { return Collections.singletonList(myNavigatable); } if (myResult == null) return Collections.emptyList(); if (myResult instanceof FailureResult) { List<Navigatable> result = new SmartList<>(); for (Failure failure : ((FailureResult)myResult).getFailures()) { ContainerUtil.addIfNotNull(result, failure.getNavigatable()); } return result; } return Collections.emptyList(); }