PhpReturn phpReturn = PsiTreeUtil.findChildOfType(method, PhpReturn.class);
if(phpReturn != null) {
PhpPsiElement returnValue = phpReturn.getFirstPsiChild();
if(returnValue instanceof StringLiteralExpression && formTypeNamesList.contains(((StringLiteralExpression) returnValue).getContents())) {
extendedTypeClasses.add(new FormClass(FormClassEnum.EXTENSION, containingClass, isWeak));
}
}
}