if (isSupported(Analysis.class)) {
FailureCauseBuildAction action = build.getAction(FailureCauseBuildAction.class);
if (action != null) {
// Should we also check if failures were found? is it "Analysed" or "HasKnownFailures"
return new Analysed(action);
}
}
return new NotAnalysed();
}