boolean (ProblemsHolder holder, Module module, PsiClass psiClass, UClass uClass) { String descriptionDir = getDescriptionDir(module, psiClass); if (StringUtil.isEmptyOrSpaces(descriptionDir)) { return false; } for (PsiDirectory description : getDescriptionsDirs(module)) { PsiDirectory dir = description.findSubdirectory(descriptionDir); if (dir == null) continue; final PsiFile descr = dir.findFile("description.html"); if (descr == null) continue; if (!hasBeforeAndAfterTemplate(dir.getVirtualFile()) && !skipOptionalBeforeAfter(psiClass)) { ProblemHolderUtilKt.registerUProblem(holder, uClass, getHasNotBeforeAfterError()); } return true; } return false; }