instance is annotated @Nullable but if you pass in a null this will throw a NPE.