i have the following PsiMethodCallExpression:
optObj.map(x -> new AnotherObject(anotherInput)).orElse(new AnotherObject())
When i call .getType(), the returnType is Object.
optObj is of type Optional.
Is there any way to resolve Object to "AnotherObject"?
PS doing resolveMethod().getReturnType() is get "T", since this is a generic method.