void () { FileTypeBean bean = new FileTypeBean(); bean.name = MyTestFileType.NAME; bean.implementationClass = MyTestFileType.class.getName(); Disposable disposable = registerFileType(bean, FileTypeManagerImpl.coreIdeaPluginDescriptor()); assertNotNull(myFileTypeManager.findFileTypeByName(MyTestFileType.NAME)); WriteAction.run(() -> Disposer.dispose(disposable)); assertNull(myFileTypeManager.findFileTypeByName(MyTestFileType.NAME)); }