if (parentBuildAction != null && dynamicBuild.equals(parentBuildAction.getParent())) {
q.cancel(i);
}
}
for (DynamicSubProject c : dynamicBuild.getAllSubProjects()) {
DynamicSubBuild b = c.getBuildByNumber(n);
if (b != null && b.isBuilding()) {
Executor exe = b.getExecutor();
if (exe != null) {
logger.println(Messages.MatrixBuild_Interrupting(ModelHyperlinkNote.encodeTo(b)));
exe.interrupt();
}
}