Cannot Resolve Method In Optional