IPath elementPath = element.getFullPath();
IAdaptable[] workingSetElements = cachedWorkingSet;
if (workingSetElements == null) {
workingSetElements = workingSet.getElements();
}
<BUG>for (int i = 0; i < workingSetElements.length; i++) {
IAdaptable workingSetElement = workingSetElements[i];
</BUG>
IContainmentAdapter containmentAdapter = workingSetElement.getAdapter(IContainmentAdapter.class);
if (containmentAdapter != null) {

IPath elementPath = element.getFullPath();
IAdaptable[] workingSetElements = cachedWorkingSet;
if (workingSetElements == null) {
workingSetElements = workingSet.getElements();
}
for (IAdaptable workingSetElement : workingSetElements) {
IContainmentAdapter containmentAdapter = workingSetElement.getAdapter(IContainmentAdapter.class);
if (containmentAdapter != null) {
