diff --git a/src/Utils.php b/src/Utils.php
index <HASH>..<HASH> 100644
--- a/src/Utils.php
+++ b/src/Utils.php
@@ -167,7 +167,7 @@ function getUserDefinedClasses()
     # TODO optimize
     $all = get_declared_classes();
     return array_filter($all, function($class) {
-        return (new \ReflectionClass($class))->isUserDefined();
+        return !(new \ReflectionClass($class))->isInternal();
     });
 }
HHVM fix attempt for wildcards