private static bool getInterpPath(Interp askingInterp, Interp targetInterp) { if (targetInterp == askingInterp) { return true; } if (targetInterp == null || targetInterp.slave == null) { return false; } if (!getInterpPath(askingInterp, targetInterp.slave.masterInterp)) { return false; } askingInterp.appendElement(targetInterp.slave.path); return true; }