List<String> (@NotNull PsiClass aClass) { String qName = aClass.getQualifiedName(); if (qName != null) { PsiFile file = aClass.getContainingFile(); if (file instanceof PsiJavaFile) { VirtualFile virtualFile = file.getOriginalFile().getVirtualFile(); if (virtualFile != null) { String pkgName = ((PsiJavaFile)file).getPackageName(); String relPath = (pkgName.isEmpty() ? qName : pkgName.replace('.', '/') + '/' + qName.substring(pkgName.length() + 1)) + HTML_EXTENSION; return findUrlForVirtualFile(file.getProject(), virtualFile, relPath); } } } return null; }