// added by
// the import inspection dialog.
if (bibtexResult != null) {
if (!openInNew) {
final BasePanel panel = (BasePanel) frame.getTabbedPane().getSelectedComponent();
BibtexDatabase toAddTo = panel.database();
// Use the import inspection dialog if it is enabled in preferences, and
// (there are more than one entry or the inspection dialog is also enabled
// for single entries):
if (Globals.prefs.getBoolean("useImportInspectionDialog") &&