diff --git a/plugins/ByteCodeViewer/src/com/intellij/byteCodeViewer/ByteCodeViewerManager.kt b/plugins/ByteCodeViewer/src/com/intellij/byteCodeViewer/ByteCodeViewerManager.kt index 1e041da9b657..273766dcff33 100644 --- a/plugins/ByteCodeViewer/src/com/intellij/byteCodeViewer/ByteCodeViewerManager.kt +++ b/plugins/ByteCodeViewer/src/com/intellij/byteCodeViewer/ByteCodeViewerManager.kt @@ -58,9 +58,9 @@ object ByteCodeViewerManager { if (aClass != null) return aClass } - var containingClass = PsiTreeUtil.getParentOfType(psiElement, PsiClass::class.java, false) + var containingClass = PsiTreeUtil.getParentOfType(psiElement, PsiClass::class.java, false) while (containingClass is PsiTypeParameter) { - containingClass = PsiTreeUtil.getParentOfType(containingClass, PsiClass::class.java) + containingClass = PsiTreeUtil.getParentOfType(containingClass, PsiClass::class.java) } if (containingClass != null) return containingClass