BuilderType (@NotNull PsiVariable variable) { if (TypeUtils.variableHasTypeOrSubtype(variable, CommonClassNames.JAVA_LANG_ABSTRACT_STRING_BUILDER)) { return BuilderType.ABSTRACT_STRING_BUILDER; } if (TypeUtils.typeEquals(STRING_JOINER, variable.getType())) { return BuilderType.STRING_JOINER; } return null; }