@Nullable
    private static PsiLocalVariable extractDeclared(@NotNull PsiElement declaration) {
      if (!(declaration instanceof PsiDeclarationStatement declarationStatement)) return null;
      final PsiElement[] declaredElements = declarationStatement.getDeclaredElements();
      if (declaredElements.length != 1) return null;
      return ObjectUtils.tryCast(declaredElements[0], PsiLocalVariable.class);
    }
@Nullable
    private static PsiLocalVariable extractDeclared(@NotNull PsiElement declaration)