void (ParserDefinition definition, String extension) { myLanguage = definition.getFileNodeType().getLanguage(); myFileExt = extension; addExplicitExtension(LanguageParserDefinitions.INSTANCE, this.myLanguage, definition); registerComponentInstance( getApplication().getPicoContainer(), FileTypeManager.class, new MockFileTypeManager(new MockLanguageFileType(myLanguage, myFileExt))); }