private static final PHPTypeInferencer TYPE_INFERENCER = new PHPTypeInferencer();
public static IType[] getTypes(ASTNode expression, ISourceModule sourceModule) {
IContext context = ASTUtils.findContext(sourceModule, SourceParserUtil.getModuleDeclaration(sourceModule), expression.sourceStart());
if (context != null) {
IType[] types = getTypes(new PHPTypeInferencer().evaluateType(new ExpressionTypeGoal(context, expression)), context, expression.sourceStart());
if (types != null) {
return types;
}
}