サンプル

public class ClassA {
private Collection c;
public void methodA {

c.add(c);
//...
}

}
ソリューション Container c のそれ自体への追加を見直します。