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.
As discussed in bug 186117, EditorCookie.getOpenedPanes() is not recommended, and NbDocument.findRecentEditorPane should be used instead. See comments 13 and 14 of that bug. So, the getOpenedPanes() method should be deprecated, or there should at least be a comment in javadoc alerting about the performance implications.