PsiClass (String className) { final JavaRunConfigurationModule configurationModule = new JavaRunConfigurationModule(getProject(), false); configurationModule.setModule(myModuleSelector.get()); return configurationModule.findClass(className); }