<BUG>int actualAccess = getAccessNumber(refUtil.getAccessModifier(psiElement));if (psiElement instanceof PsiClass) {</BUG><CONTEXT>private static boolean isTagRequired(Options options, String tag) {return options.REQUIRED_TAGS.contains(tag);}private boolean isJavaDocRequired(PsiModifierListOwner psiElement) {final RefJavaUtil refUtil = RefJavaUtil.getInstance();<extra_id_0>PsiClass psiClass = (PsiClass)psiElement;if (PsiTreeUtil.getParentOfType(psiClass, PsiClass.class) != null) {return actualAccess <= getAccessNumber(INNER_CLASS_OPTIONS.ACCESS_JAVADOC_REQUIRED_FOR);</CONTEXT>
if (psiElement instanceof PsiPackage) {return 1 <= getAccessNumber(PACKAGE_OPTIONS.ACCESS_JAVADOC_REQUIRED_FOR);if (psiElement instanceof PsiClass) {