protected IInvocationStatistics getTotalStatistics(Object element) {
if (element instanceof IInvocationStatistics) {
return (IInvocationStatistics) element;
}
if (element instanceof HasTotalStatistics) {
HasTotalStatistics node = (HasTotalStatistics) element;
IInvocationStatistics answer = node.getTotalStatistics();
if (answer != null) {
return answer;
}
}
if (element instanceof ProcessorNodeSupport) {
ProcessorNodeSupport node = (ProcessorNodeSupport) element;
return node.getTotalStatistics();
}
return null;
}