public static function getProperty($class, $property, $filter = null)
    {
        $className = self::getClassName($class);
        $properties = self::getProperties($className, $filter);

        if (!empty($properties)) {
            /** @var \ReflectionProperty $reflectionProperty */
            foreach ($properties as $reflectionProperty) {
                if ($reflectionProperty->getName() === $property) {
                    return $reflectionProperty;
                }
            }
        }

        return null;
    }