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.
Position elementEnd = el.getPosition().getEnd().getPosition();
for(GuardedSection section:manager.getGuardedSections()) {
if (section.contains(elementStart, true) ||
section.contains(elementEnd, true)) {
(section.contains(elementEnd, true) &&
section.getStartPosition().getOffset() != elementEnd.getOffset())) {
return true;
}