String (@NotNull final PsiElement element, @NotNull final ElementDescriptionLocation location) { if (element instanceof PyStringLiteralExpression) { final PyMagicLiteralExtensionPoint point = PyMagicLiteralTools.getPoint((PyStringLiteralExpression)element); if (point != null) { if (location instanceof UsageViewTypeLocation) { return point.getLiteralType(); } if ((location instanceof UsageViewShortNameLocation) || (location instanceof UsageViewLongNameLocation)) { return ((StringLiteralExpression)element).getStringValue(); } } } return null; }