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.
Otherwise the only way to ensure there aren't calls to some method is checking 'Test compile during build' (or something like that)
*** This issue has been marked as a duplicate of 48465 ***