PyCommonOptionsFormData () { return new PyCommonOptionsFormData() { @Override public Project getProject() { return myProject; } @Override public List<Module> getValidModules() { return AbstractPythonRunConfiguration.getValidModules(myProject); } @Override public boolean showConfigureInterpretersLink() { return true; } }; }