PsiClass (@NotNull String className, @NotNull Module module) { Project project = module.getProject(); ModulesScope scope = new ModulesScope(Collections.singleton(module), project); return JavaPsiFacade.getInstance(project).findClass(className, scope); }