private static Usage findUsage(final GoLiteralIdentifier identifier, GoPsiElement scope) {
final List<PsiElement> writeUsages = new ArrayList<PsiElement>();
final List<PsiElement> readUsages = new ArrayList<PsiElement>();
final GoReadWriteAccessDetector detector = new GoReadWriteAccessDetector();
new GoRecursiveElementVisitor() {
@Override
public void visitLiteralIdentifier(GoLiteralIdentifier id) {
if (identifier.equals(resolveSafely(id, PsiElement.class))) {
if (detector.getExpressionAccess(id) == ReadWriteAccessDetector.Access.Read) {
readUsages.add(id);