for(PsiElement psiElement: psiElements) {
// blocks
if (TwigHelper.getBlockTagPattern().accepts(psiElement)) {
LineMarkerInfo lineImpl = this.attachBlockImplements(psiElement);
if(lineImpl != null) {
results.add(lineImpl);
}
LineMarkerInfo lineOverwrites = this.attachBlockOverwrites(psiElement);
if(lineOverwrites != null) {
results.add(lineOverwrites);
}
}
// controller
if(psiElement instanceof TwigFile) {
attachController((TwigFile) psiElement, results);
// attach parent includes goto
LineMarkerInfo lineIncludes = attachIncludes((TwigFile) psiElement);
if(lineIncludes != null) {
results.add(lineIncludes);
}
// attach parent includes goto
LineMarkerInfo lineFromInclude = attachFromIncludes((TwigFile) psiElement);
if(lineFromInclude != null) {
results.add(lineFromInclude);
}
}