<commit_before>package org.mustbe.consulo.csharp.lang.psi.resolve;

import org.jetbrains.annotations.NotNull;
import com.intellij.openapi.util.Comparing;
import com.intellij.openapi.util.UserDataHolderBase;
import com.intellij.psi.PsiElement;

/**
 * @author VISTALL
 * @since 07.10.14
 */
public class MemberByNameSelector extends UserDataHolderBase implements CSharpNamedResolveSelector
{
	private String myName;

	public MemberByNameSelector(String name)
	{
		myName = name;
	}

	@NotNull
	@Override
	@SuppressWarnings("unchecked")
	public PsiElement[] doSelectElement(@NotNull CSharpResolveContext context, boolean deep)
	{
		return context.findByName(myName, deep, this);
	}

	@Override
	public boolean isNameEqual(@NotNull String name)
	{
		return Comparing.equal(myName, name);
	}
}
<commit_msg>cleanup<commit_after>package org.mustbe.consulo.csharp.lang.psi.resolve;

import org.jetbrains.annotations.NotNull;
import com.intellij.openapi.util.Comparing;
import com.intellij.openapi.util.UserDataHolderBase;
import com.intellij.psi.PsiElement;

/**
 * @author VISTALL
 * @since 07.10.14
 */
public class MemberByNameSelector extends UserDataHolderBase implements CSharpNamedResolveSelector
{
	private String myName;

	public MemberByNameSelector(String name)
	{
		myName = name;
	}

	@NotNull
	@Override
	public PsiElement[] doSelectElement(@NotNull CSharpResolveContext context, boolean deep)
	{
		return context.findByName(myName, deep, this);
	}

	@Override
	public boolean isNameEqual(@NotNull String name)
	{
		return Comparing.equal(myName, name);
	}
}

{'fraction_non_alphanumeric': 0.09897828863346105, 'fraction_numerical': 0.007662835249042145, 'mean_word_length': 5.6118143459915615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3145111', 'n_tokens_mistral': 524, 'n_tokens_neox': 505, 'n_words': 103}