}
private int determinePosition(FileSystemAction a) {
for (int i=0; i<TARGET_ORDER.length; i++) {
Class<?> targetClass = (Class<?>) TARGET_ORDER[i][0];
FileType targetFileType = (FileType) TARGET_ORDER[i][1];
if (a.getClass().equals(targetClass) && a.getType() == targetFileType) {
return i;
}
}