PsiFile (@NotNull ReferenceType refType, @NotNull String runtimeName, @NotNull Project project, @NotNull GlobalSearchScope scope) { String sourceFilePath = getScriptForClassName(refType); if (sourceFilePath == null) return null; sourceFilePath = getLocalFilePath(project, sourceFilePath); VirtualFile virtualFile = LocalFileSystem.getInstance().findFileByPath(FileUtil.toSystemIndependentName(sourceFilePath)); if (virtualFile == null) return null; return PsiManager.getInstance(project).findFile(virtualFile); }