Added boolean parameter to include or exclude return type to method get extended name