int (RefMethod refMethod) { int count = 0; for (RefMethod refDerived : refMethod.getDerivedMethods()) { count += refDerived.getInReferences().size() + getDerivedRefsCount(refDerived); } return count; }