T (int objectID, @NotNull ObjectFactory<T> objectFactory) { T object = myObjectsMap.get(objectID); if (object == null) { object = objectFactory.newInstance(); myObjectsMap.put(objectID, object); objectFactory.fill(object); } return object; }