String (@NotNull final PsiElement element, final boolean obtainValue) { if (element instanceof PyStringLiteralExpression) { final PyMagicLiteralExtensionPoint point = PyMagicLiteralTools.getPoint((PyStringLiteralExpression)element); if (point != null) { if (obtainValue) { return ((StringLiteralExpression)element).getStringValue(); } else { return point.getLiteralType(); } } } return null; }