private PsiElement[] getSets(PsiElement psiElement) {
String funcName = psiElement.getText();
for(TwigSet twigSet: TwigUtil.getSetDeclaration(psiElement.getContainingFile())) {
if(twigSet.getName().equals(funcName)) {
return PsiTreeUtil.collectElements(psiElement.getContainingFile(), new RegexPsiElementFilter(
TwigTagWithFileReference.class,
"\\{%\\s?set\\s?" + Pattern.quote(funcName) + "\\s?.*")
);
}
}