return (ASTNode[]) result.toArray(new ASTNode[result.size()]);
return (IASTFragment[]) result.toArray(new IASTFragment[result.size()]);
    private static ASTNode[] retainOnlyReplacableMatches(ASTNode[] allMatches) {    	List result= new ArrayList(allMatches.length);    	for (int i= 0; i < allMatches.length; i++) {            if (canReplace(allMatches[i]))            	result.add(allMatches[i]);        }        return (ASTNode[]) result.toArray(new ASTNode[result.size()]);    }