DiffHyperlink () { AbstractState state = myState; if (state instanceof TestComparisonFailedState) { return ((TestComparisonFailedState)state).getHyperlink(); } if (state instanceof CompoundTestFailedState) { return ContainerUtil.getFirstItem(((CompoundTestFailedState)state).getHyperlinks()); } return null; }