Let\'s say I have two classes and two methods:
class Scratch { private class A{} private class B extends A{} public Optional getItems(List&
If the class B inherits class A, that doesn't mean Optional inherits Optional. Optional is a different class.