Shouldn't this be 
```java
nullablePkType = method.getParameters().get(0).getType();
```