void (final JPanel mainPanel) { myLanguageLevelConfigurable = new LanguageLevelConfigurable(myProject, this::fireModuleConfigurationChanged) { @Override public @NotNull LanguageLevelModuleExtension getLanguageLevelExtension() { return getModifiableModel().getModuleExtension(LanguageLevelModuleExtension.class); } }; mainPanel.add(myLanguageLevelConfigurable.createComponent(), BorderLayout.NORTH); myLanguageLevelConfigurable.reset(); }