String prefName = CodeCompletionPreferencesInitializer.CHARS_FOR_CTX_INSENSITIVE_MODULES_COMPLETION;
return getIntFromPrefs(prefName);
}
private static int getIntFromPrefs(String prefName) {
CodecompletionPlugin plugin = CodecompletionPlugin.getDefault();
if (plugin == null) {
return 1;
}
return plugin.getPreferenceStore().getInt(prefName);
}