boolean (@NotNull PyExpression expression) { if (getParentDefinitionDocString(expression) == expression) { return true; } if (expression instanceof PyStringLiteralExpression) { return isVariableDocString((PyStringLiteralExpression)expression); } return false; }