break;
case EXTEND_FIELD: {
PsiElement[] children = scope.getChildren();
for (PsiElement child : children) {
if (child instanceof PbExtendDef) {
PbBlock extendBlock = ((PbExtendDef) child).getBlock();
if (extendBlock == null) {
return null;
}
PsiElement[] extendChildren = extendBlock.getChildren();
for (PsiElement extendChild : extendChildren) {
if (extendChild instanceof PbFieldDef && refName.equals(((PbFieldDef) extendChild).getName())) {
return extendChild;
} else if (extendChild instanceof PbGroupDef && refName.equals(((PbGroupDef) extendChild).getFieldName())) {
return extendChild;