checkIfModifiable(result, units[i], true);
checkIfModifiable(result, units[i], true, true);
	public RefactoringStatus isValid(IProgressMonitor pm) throws CoreException {		RefactoringStatus result= new RefactoringStatus();		IJavaElement element= (IJavaElement)getModifiedElement();		if (element != null && element.exists() && element instanceof IPackageFragment) {			IPackageFragment pack= (IPackageFragment)element;			ICompilationUnit[] units= pack.getCompilationUnits();			if (units == null || units.length == 0)				return result;							pm.beginTask("", units.length); //$NON-NLS-1$			for (int i= 0; i < units.length; i++) {				pm.subTask(RefactoringCoreMessages.getFormattedString("RenamePackageChange.checking_change", element.getElementName())); //$NON-NLS-1$				checkIfModifiable(result, units[i], true);				pm.worked(1);			}			pm.done();		}		return result;	}