@Override
    public void visitImportStatement(@NotNull PsiImportStatement statement) {
      super.visitImportStatement(statement);
      if (!statement.isOnDemand()) {
        registerError(statement);
      }
    }
@Override
    public void visitImportStatement(@NotNull PsiImportStatement statement)