PyStringLiteralExpression (@NotNull final DataContext dataContext) { final Editor editor = CommonDataKeys.EDITOR.getData(dataContext); if (editor == null) { return null; } final PsiFile file = CommonDataKeys.PSI_FILE.getData(dataContext); if (file == null) { return null; } final PsiElement element = getElement(file, editor); if (element instanceof PyStringLiteralExpression) { return (PyStringLiteralExpression)element; } return null; }