boolean (@NotNull PsiElement element) { String qualifiedName = ReadAction.compute( () -> { PsiClass value = element instanceof PsiClass ? (PsiClass)element : ((PsiMember)element).getContainingClass(); PsiClass baseClass = Objects.requireNonNull(value); return baseClass.getQualifiedName(); } ); return CommonClassNames.JAVA_LANG_OBJECT.equals(qualifiedName); }