In a class named example.Foo I had code like:
Bar result = new Bar(param);
where Bar was not defined yet. I press Alt+Enter of the first line wanting to create Bar as a nested class, but the hint
only offers to create a top-level class.
I have a module that provides this, I will submit a patch for this issue. Here is the module, but not the sources yet:
This should work:
Integrated into 'main-golden', will be available in build *201004280200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)