This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
1/ The IDE should suggest @NonNull annotation for methods, which, on all its normal exit paths, produce non-null result. Even lazy getters have often such a property 2/ If a method parameter si blindly dereferenced, the IDE could offer @NonNull annotation to the parameter or assert param != null guard, to help the programmer if the non-nullness is a designed property.