IInterpreterInfo[] interpreterInfos = pythonInterpreterManager.getInterpreterInfos();
for (IInterpreterInfo iInterpreterInfo : interpreterInfos) {
try {
SystemPythonNature systemPythonNature = new SystemPythonNature(pythonInterpreterManager,
iInterpreterInfo);
String modName = systemPythonNature.resolveModule(file);
if (modName != null) {
return new Tuple<IPythonNature, String>(systemPythonNature, modName);
}
} catch (Exception e) {
// that's ok