Missing deprecation from #1135.
Attempting NetBeans automatic fixes for deprecations in #1135, #1138.
Not currently working: https://netbeans.org/bugzilla/show_bug.cgi?id=242428