@Override
      public void visitResourceVariable(@NotNull PsiResourceVariable variable) {
        if (PsiTreeUtil.getParentOfType(variable, PsiClass.class) != PsiTreeUtil.getParentOfType(body, PsiClass.class)) {
          return;
        }
        result.add(variable);
      }
@Override
      public void visitResourceVariable(@NotNull PsiResourceVariable variable)