if(targets.size() == 0 || psiVariables == null || previousElements == null || previousElements.size() != 0) {
return;
}
Symfony2InterfacesUtil symfony2InterfacesUtil = new Symfony2InterfacesUtil();
TwigTypeContainer twigTypeContainer = targets.iterator().next();
if(twigTypeContainer.getPhpNamedElement() instanceof PhpClass) {
if(symfony2InterfacesUtil.isInstanceOf((PhpClass) twigTypeContainer.getPhpNamedElement(), "\\Symfony\\Component\\Form\\FormView")) {
if(psiVariables.size() > 0) {
PsiElement var = psiVariables.get(0).getElement();
// $form->createView()
if(var instanceof MethodReference) {