if (shouldCache(input[i])) {
if (objectManager.shouldPersist(input[i])) {
	private int[] filter(int[] input) {		boolean[] save = new boolean[input.length];		int resultSize = 0;		for (int i = 0; i < input.length; i++) {			if (shouldCache(input[i])) {				save[i] = true;				resultSize++;			} else				save[i] = false;		}		int[] result = new int[resultSize];		int pos = 0;		for (int i = 0; i < input.length; i++) {			if (save[i]) {				result[pos] = input[i];				pos++;			}		}		return result;	}