private static bool HasNonDefaultTupleElementNames(INamedTypeSymbol tupleSymbol) { var elementNames = tupleSymbol.TupleElementNames; if (!elementNames.IsDefault) { for (int i = 0; i < elementNames.Length; i++) { if (elementNames[i] != TupleTypeSymbol.TupleMemberName(i + 1)) { return(true); } } } return(false); }