@Override
        public void visitDeclarationStatement(@NotNull PsiDeclarationStatement statement) {
          PsiElement[] declaredElements = statement.getDeclaredElements();
          for (PsiElement element : declaredElements) {
            if (element instanceof PsiVariable) {
              declaredVariables.add(element);
            }
          }
        }
@Override
        public void visitDeclarationStatement(@NotNull PsiDeclarationStatement statement)