void (@NotNull PsiVariable variable) { super.visitVariable(variable); final PsiType type = variable.getType(); final PsiType deepComponentType = type.getDeepComponentType(); if (!(deepComponentType instanceof PsiClassType classType)) { return; } @NonNls final String className = classType.getCanonicalText(); if (!className.startsWith("sun.")) { return; } final PsiTypeElement typeElement = variable.getTypeElement(); if (typeElement == null) { return; } registerError(typeElement); }