import java.util.*; class A { private static final List LIST = Collections.emptyList(); void m(boolean b) { List l = b ? new ArrayList() : LIST; } }