PsiLocalVariable (@NotNull PsiAssignmentExpression assignmentExpression) { PsiLocalVariable delimiterVar = resolveLocalVariable(assignmentExpression.getLExpression()); if (delimiterVar == null) return null; PsiType delimiterVarType = delimiterVar.getType(); if (!delimiterVarType.equalsToText(CommonClassNames.JAVA_LANG_STRING)) return null; PsiExpression initializer = delimiterVar.getInitializer(); if (initializer == null) return null; Object constantExpression = ExpressionUtils.computeConstantExpression(initializer); if (!"".equals(constantExpression)) return null; return delimiterVar; }