void () { Collection<FileTypeBean> fileTypes = withReadLock(() -> new ArrayList<>(myPendingFileTypes.values())); for (FileTypeBean fileTypeBean : fileTypes) { mergeOrInstantiateFileTypeBean(fileTypeBean); } }