Make sure we only write a resource file once, even in the presence of source-generating annotations.
https://netbeans.org/bugzilla/show_bug.cgi?id=244383