boolean (@NotNull PsiScopeProcessor processor, @NotNull ResolveState state, PsiElement lastParent, @NotNull PsiElement place) { List<ShSimpleCommandElement> commandsList = getSimpleCommandElementList(); if (commandsList.size() <= 0) return true; ShSimpleCommandElement simpleCommandElement = commandsList.get(0); PsiFile includedPsiFile = getReferencingFile(simpleCommandElement); if (includedPsiFile == null) return true; VirtualFile sourceFile = place.getContainingFile().getVirtualFile(); if (includedPsiFile.getVirtualFile().equals(sourceFile)) return true; return includedPsiFile.processDeclarations(processor, state, this, place); }