private function removeUsedFields(ClassNode $class) { foreach ($class->findChildrenOfType('PropertyPostfix') as $postfix) { if ($this->isInScopeOfClass($class, $postfix)) { $this->removeUsedField($postfix); } } }