((NavigationItem) element).navigate(true);
}
}, ModalityState.current(), true);
}
public static void addLanguageImport(Project project, final IModule contextModule, final SModelDescriptor model,
<BUG>@Nullable ShortcutSet checkboxShortcut) {
BaseLanguageModel goToLanguageModel = new BaseLanguageModel(project) {</BUG>
public NavigationItem doGetNavigationItem(ModuleReference ref) {
return new AddLanguageItem(ref, contextModule, model);
}

((NavigationItem) element).navigate(true);
}
}, ModalityState.current(), true);
}
public static void addLanguageImport(Project project, final IModule contextModule, final SModelDescriptor model,
@Nullable BaseAction parentAction) {
BaseLanguageModel goToLanguageModel = new BaseLanguageModel(project) {
public NavigationItem doGetNavigationItem(ModuleReference ref) {
return new AddLanguageItem(ref, contextModule, model);
}
