// evaluate based on resource type
if (changeCandidate.getType() == IResource.FILE) {
List<RefactoringStatusEntry> entries = validateChangeFile((IFile) changeCandidate, monitor);
for (RefactoringStatusEntry refactoringStatusEntry : entries) {
refactoringStatus.addEntry(refactoringStatusEntry);
}
} else if (changeCandidate.getType() == IResource.FOLDER) {
List<RefactoringStatusEntry> entries = validateChangeFolder((IFolder) changeCandidate, monitor);
for (RefactoringStatusEntry refactoringStatusEntry : entries) {
refactoringStatus.addEntry(refactoringStatusEntry);