Clearer to consolidate: have one block for `if (cause instanceof UpstreamCause)` inside of which is a nested test for `if (jobName.equals(((UpstreamCause)cause).getUpstreamProject()))`.