Cannot Resolve Method In Optional Chaining