VirtualFile (PsiClass psiClass) { VirtualFile file = psiClass.getContainingFile().getVirtualFile(); if (psiClass.getParent() instanceof PsiClass) { VirtualFile root = ProjectFileIndex.getInstance(psiClass.getProject()).getClassRootForFile(file); file = root.findFileByRelativePath(ClassUtil.getJVMClassName(psiClass).replace('.', '/') + ".class"); } return file; }