T () { if (index >= capacity) return factory.create(); if (storage[index] == null) { storage[index] = factory.create(); } <error descr="Incompatible types. Found: 'java.lang.Object[]', required: 'T'">return storage;</error> }