added toString
re-enabled null check
added nbTypeParameters to avoid typeParameters().size()
whitespace