Maybe `boolean ignoreConstructorAnnotations = Boolean.TRUE.equals( returnValueType.getIgnoreAnnotations() )`? This would avoid the separat null check.