@Nonnull
	public AstResolveResult matchDeclarationState(@Nonnull AstResolveResult other) {
		if (this == other)
			return this;
		if (isDeclaration == other.isDeclaration)
			return this;
		return other.isDeclaration ? asDeclaration() : asReference();
	}
@param other
		Other result to match {@link #isDeclaration()} state of.

@return Copy of self, as matching state.
recaf-core/src/main/java/software/coley/recaf/services/source/AstResolveResult.java