Collection<GraphEdge> () { Set<GraphEdge> result = myDottedEdges.getEdges(); result.removeAll(ContainerUtil.filter(myHiddenEdges.getEdges(), graphEdge -> graphEdge.getType() == GraphEdgeType.DOTTED)); result.removeAll(myLinearGraph.myDottedEdges.getEdges()); return result; }