Created attachment 147601 [details]
A hint "Unnecessary semicolon" should appear for this statement:
When the user presses Enter, the semicolon should be removed.
First I started to create a hint in my own plugin, but there was a bug /, which prevented me to continue.
So after  in the NB sources had been fixed, I implemented it as a patch for the NB sources. So I like to propose a patch to solve this issue.
The patch is a major refactoring of org.netbeans.modules.java.hints.EmptyStatements :
* migration/simplification by using TriggerTreeKind and @Hint annotations
* no more explicit registration in layer.xml
* reuse of the existing resources (labels, descriptions, ids) of the EmptyStatements hint
* unit tests
BTW: This patch also fixes 
Please give it a try, review and commit.
Integrated into jet-main. Thanks for the patch.
@Svata: I guess the target milestone was wrong (8.0). I set it to 8.0.1