/** * Returns whether the given connection ends in a port that is a node in the dependency graph with * state {@link PortState#RECOMPUTE}. * * <p>This method always returns false if the connection is not within the current parent module. */ private boolean isConnectionToRecomputedNode(RuntimeConnection runtimeConnection) { if (runtimeConnection.getParentModule() == module) { DependencyGraphNode portNode = dependencyGraph.targetNode(runtimeConnection.getToPort()); if (portNode.getPortState() == PortState.RECOMPUTE) { return true; } } return false; }