text: public NameXPtg getNameXPtg(String name, int sheetRefIndex) {for (int i = 0; i < _externalBookBlocks.length; i++) {int definedNameIndex = _externalBookBlocks[i].getIndexOfName(name);if (definedNameIndex < 0) {continue;}int thisSheetRefIndex = findRefIndexFromExtBookIndex(i);if (thisSheetRefIndex >= 0) {if (sheetRefIndex == -1 || thisSheetRefIndex == sheetRefIndex) {return new NameXPtg(thisSheetRefIndex, definedNameIndex);}}}return null;}