package hudson.plugins.copyProjectLink;

import hudson.Extension;
import hudson.model.TransientProjectActionFactory;
import hudson.model.AbstractProject;

import java.util.ArrayList;
import java.util.Collection;

@Extension
public class CopyProjectActionFactory extends TransientProjectActionFactory{
	
	/**
	 * {@inheritDoc}}
	 */
	@Override
	public Collection<CopyProjectAction> createFor(AbstractProject target){
		ArrayList<CopyProjectAction> ta = new ArrayList<CopyProjectAction>();
		ta.add(new CopyProjectAction(target));
		return ta;
	}

}

@@ -165,25 +165,26 @@
 va.util.
-ArrayList
+Collection
 ;%0Aimport
@@ -204,16 +204,17 @@
 llection
+s
 ;%0A%0A@Exte
@@ -415,88 +415,40 @@
 t)%7B%0A
-%09%09ArrayList%3CCopyProjectAction%3E ta = new ArrayList%3CCopyProjectAction%3E();%0A%09%09ta.add
+    return Collections.singleton
 (new
@@ -480,21 +480,8 @@
 ));%0A
-%09%09return ta;%0A
 %09%7D%0A%0A

Use Collections.singleton to create the Action