for (int i= 0; i < grouped.length; i++){ IResource resource= grouped[i].getResource(); if (hasCompileErrors(resource)) result.addWarning(RefactoringCoreMessages.getFormattedString("Checks.cu_has_compile_errors", resource.getFullPath().makeRelative())); }
for (int i= 0; i < grouped.length; i++) checkCompileErrorsInAffectedFile(result, grouped[i].getResource());
	public static RefactoringStatus checkCompileErrorsInAffectedFiles(SearchResultGroup[] grouped) throws JavaModelException {		RefactoringStatus result= new RefactoringStatus();		for (int i= 0; i < grouped.length; i++){			IResource resource= grouped[i].getResource();			if (hasCompileErrors(resource))				result.addWarning(RefactoringCoreMessages.getFormattedString("Checks.cu_has_compile_errors", resource.getFullPath().makeRelative())); //$NON-NLS-1$		}		return result;	}