if (element instanceof ICompilationUnit) {
return (ICompilationUnit) element;
}
}
return null;
<BUG>}
protected CompilationUnit createWorkingCopy(ICompilationUnit unit) throws JavaModelException {

assert unit != null;</BUG>
unit.becomeWorkingCopy(null, monitor);

if (element instanceof ICompilationUnit) {
return (ICompilationUnit) element;
}
}
return null;
}
protected void reportException(Exception e) {
assert e != null;
FindbugsPlugin.getDefault().logException(e, e.getLocalizedMessage());
MessageDialog.openError(FindbugsPlugin.getShell(), "BugResolution failed.", e.getLocalizedMessage());
}
private CompilationUnit createWorkingCopy(ICompilationUnit unit) throws JavaModelException {
unit.becomeWorkingCopy(null, monitor);
