InspectionDescriptionInfo (Module module, PsiClass psiClass) { PsiMethod getShortNameMethod = PsiUtil.findNearestMethod("getShortName", psiClass); if (getShortNameMethod != null && Objects.requireNonNull(getShortNameMethod.getContainingClass()).hasModifierProperty(PsiModifier.ABSTRACT)) { getShortNameMethod = null; } boolean shortNameInXml; String filename = null; if (getShortNameMethod == null) { shortNameInXml = true; String className = psiClass.getQualifiedName(); if (className != null) { Extension extension = findExtension(psiClass); if (extension != null) { filename = extension.getXmlTag().getAttributeValue("shortName"); } } } else { shortNameInXml = false; filename = getReturnedLiteral(getShortNameMethod, psiClass); } if (filename == null) { final String className = psiClass.getName(); LOG.assertTrue(className != null, psiClass); filename = InspectionProfileEntry.getShortName(className); } PsiFile descriptionFile = resolveInspectionDescriptionFile(module, filename); return new InspectionDescriptionInfo(filename, getShortNameMethod, descriptionFile, shortNameInXml); }