private function createCallback($class, string $methodName, string $projectPath): callable
    {
        $instance = ((is_string($class)) ? (new $class($projectPath)) : ($class));
        return [$instance, $methodName];
    }